scratchfoundation / scratchfoundation/scratch-blocks

Dragging the flyout doesn't stop the scroll animation

Open
#3,384 1 comment 0 reactions 0 assignees View on GitHub

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:

  1. Go to 'https://scratch.mit.edu/projects/editor'
  2. Click on a block category
  3. While it's moving, start dragging the block palette
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.