scratchfoundation / scratch-gui

Graphical User Interface for creating and running Scratch 3.0 projects.
https://scratchfoundation.github.io/scratch-gui/develop/
BSD 3-Clause "New" or "Revised" License
4.46k stars 3.55k forks source link

Inconsistent results between project page and the editor when using pen and mouse down. #5255

Open martinohanlon opened 5 years ago

martinohanlon commented 5 years ago

This is a simple project which uses the pen draw on the stage when the mouse is down.

When tested on the project page (https://scratch.mit.edu/projects/337364856/) the program works as expected, when the mouse is down the pen draws.

When tested in the editor, (https://scratch.mit.edu/projects/337364856/editor/) the pen only draws when the mouse is first pressed.

ezgif com-video-to-gif (1)

Expected Behavior

That the pen will draw when the mouse is down on both the project and and the editor.

Actual Behavior

The pen only draws when viewing on the project page.

Steps to Reproduce

  1. Open https://scratch.mit.edu/projects/337364856/
  2. Use the Pen to draw continuously on the stage when the mouse button is pressed down
  3. Click "see inside"
  4. Use the Pen to draw on the stage again, it will only draw when the mouse is initially pressed.

Operating System and Browser

Windows 10 18362.418, Chrome Version 77.0.3865.120 (Official Build) (64-bit)

apple502j commented 5 years ago

This is because you are dragging sprite on editor.

(If you don't understand) Scratch has a feature that enables changing sprite positions by dragging inside editor. While this is working, the sprite is kind of "hovered" and positions won't change while dragging. (Enable "x position" 's stage monitor, drag sprites, and you'll notice))

Anyway, this is how it should work, I think.

apple502j commented 5 years ago

Note that the feature is disabled in fullscreen mode. Image from Gyazo

BryceLTaylor commented 3 years ago

This is related to https://github.com/LLK/scratch-gui/issues/3011, https://github.com/LLK/scratch-gui/issues/2791 (closed), https://github.com/LLK/scratch-gui/issues/4326, and https://github.com/LLK/scratch-gui/issues/4648