scratchfoundation / scratchfoundation/scratch-blocks
Dragging the flyout doesn't stop the scroll animation
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 1.6k
- Avg merge
- 4h 51m
- Merged PRs (30d)
- 12
Description
moved from https://github.com/scratchfoundation/scratch-editor/issues/298
Expected Behavior
After releasing the block palette, it stops moving
Actual Behavior
The block palette scrolls back to the start of the selected category
Steps to Reproduce
Steps to reproduce the behavior:
- Go to 'https://scratch.mit.edu/projects/editor'
- Click on a block category
- While it's moving, start dragging the block palette
- After releasing it, the block palette scrolls back to the block category
The bug doesn't happen if you use the scroll wheel for scrolling.
System Details
I've tested it in the browser. The bug is worse on mobile because there is no scroll wheel as workaround, but I can reproduce it on a computer with mouse, too
Screenshots
https://github.com/user-attachments/assets/6588ae6e-52ad-48e7-8af1-9558c66dff05
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 at https://scratch.mit.edu/projects/editor by selecting a block category and dragging the moving block palette. Trace the block palette's drag and scroll-animation handling; done means releasing the palette no longer scrolls it back to the selected category, including on mobile, while scroll-wheel behavior remains unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100