processing / processing/processing-website
Prevent mouse events from being captured by a live sketch when the cursor is not hovering it
まだ誰も着手していません。
- 主要言語
- 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/OrthographicInput/MouseFunctionsStructure/LoopStructure/RedrawWeb/EmbeddedLinksAvanced Data/ArrayListClassAdvanced Data/LoadSaveJSONAdvanced Data/LoadSaveTableCellular Automata/WolframFileIO/SaveOneImageGUI/ButtonMotion/MovingOnCurvesSimulate/FlockingSimulate/ForcesWithVectorsSimulate/MultipleParticleSystems
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、ライブスケッチを埋め込むコードを見つけ、スケッチウィンドウの外側をクリックして問題を再現してください。特に FileIO/SaveOneImage で確認します。完了条件は、一覧にある影響を受ける例も含め、カーソルがスケッチ上にある間だけマウスクリックが登録されることです。
索引モデルが issue の本文から書いたものです。
評価
- 領域
- frontend, web-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100