processing / processing/processing-website

Prevent mouse events from being captured by a live sketch when the cursor is not hovering it

オープン
#310 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Enhancement Examples Help Wanted
主要言語
MDX
スター
90
フォーク
122
平均マージ
1時間 43分
マージ済み PR(30日)
3

説明

Current behavior
Mouse clicks register in interactive sketches even when the cursor is not over the sketch window (like clicking on links anywhere in the page). This is particularly problematic in examples like FileIO/SaveOneImage where any click triggers a file save.

Expected behavior
Mouse clicks only register when the cursor is over the sketch window

Possible solution
Embed the sketches into an iFrame. See @trikaphundo's first comment below

The following examples are using MousePressed to capture clicks and may need to be fixed

  • Camera/Orthographic
  • Input/MouseFunctions
  • Structure/Loop
  • Structure/Redraw
  • Web/EmbeddedLinks
  • Avanced Data/ArrayListClass
  • Advanced Data/LoadSaveJSON
  • Advanced Data/LoadSaveTable
  • Cellular Automata/Wolfram
  • FileIO/SaveOneImage
  • GUI/Button
  • Motion/MovingOnCurves
  • Simulate/Flocking
  • Simulate/ForcesWithVectors
  • Simulate/MultipleParticleSystems

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、ライブスケッチを埋め込むコードを見つけ、スケッチウィンドウの外側をクリックして問題を再現してください。特に FileIO/SaveOneImage で確認します。完了条件は、一覧にある影響を受ける例も含め、カーソルがスケッチ上にある間だけマウスクリックが登録されることです。

索引モデルが issue の本文から書いたものです。

評価

領域
frontend, web-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。