Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
@SableRaf

Description

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 (削除ここまで)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /