Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touching Mouse Pointer returns true even if mouse is not on the stage #5243

Open
BryceLTaylor opened this issue Oct 11, 2019 · 3 comments · May be fixed by scratchfoundation/scratch-vm#2309

Comments

@BryceLTaylor
Copy link
Contributor

Expected Behavior

If the mouse isn't on the stage the "touching mouse pointer" block won't return true.

Actual Behavior

If a sprite is partially of the edge of the screen the "touching mouse pointer" block will return true if the mouse is over the part of the sprite that is off the stage.
image4

Steps to Reproduce

Create a new project
drag the cat partially off the stage
Add the following stack
When green flag clicked forever if touching mouse pointer change color effect by 15
place the mouse off the stage but over where the cat would be
Note: the cat changes color

Operating System and Browser

Mac Chrome

@BryceLTaylor
Copy link
Contributor Author

This may be related to #2851

@adroitwhiz
Copy link
Contributor

This matches Scratch 2.0 behavior.

@apple502j
Copy link
Contributor

@adroitwhiz This bug has been exploited to make some buttons (such as love) unclickable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants