processing / processing/processing-website
Prevent mouse events from being captured by a live sketch when the cursor is not hovering it
还没有人认领这个 Issue。
- 主要语言
- MDX
- 星标
- 90
- 派生
- 122
- 平均合并
- 1 小时 43 分钟
- 30 天内合并 PR
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位嵌入实时 sketch 的代码,并通过点击 sketch 窗口外部来复现该问题,尤其要使用 FileIO/SaveOneImage。完成的标准是:只有当光标位于 sketch 上方时才会注册鼠标点击,包括所列出的受影响示例。
由索引模型根据 Issue 内容生成。
评估
- 领域
- frontend, web-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100