scratchfoundation / scratchfoundation/scratch-editor
<touching (mouse-pointer v)> block vs small bitmap costumes
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 281
- Forks
- 276
- Avg merge
- 7d 8h
- Merged PRs (30d)
- 6
Description
Expected Behavior
The block reports true when the mouse is over the sprite (dark gray area on the screenshot)
Actual Behavior
The block reports true when the mouse is over the green area on the screenshot (which has the shape of the sprite but it's stretched)
Screenshot
Steps to Reproduce
Steps to reproduce the behavior:
- Go to 'https://scratch.mit.edu/projects/1087360584/'
- To draw the green area, enable turbo mode and move the mouse over the project
- Move the mouse around the sprite and watch the 'touching mouse-pointer' variable
Alternative steps:
- Make a very small (eg. 2x3 texels) bitmap costume
- Set the sprite's size to 10000 or similar
- Run this block stack:
- Move the mouse around the costume's edges
System Details
I've tested it in the online editor. The OS and browser that I've used is Windows 10, Chrome 138
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in the linked Scratch project and with a 2x3 bitmap costume scaled to 10000%, then trace the editor's “touching mouse-pointer” behavior for small bitmap costumes. Done means the block reports true only over the visible sprite area, including around the costume edges, rather than over the stretched green area.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100