scratchfoundation / scratchfoundation/scratch-editor

Touch: can't backpack code

Open
#653 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
281
Forks
276
Avg merge
7d 8h
Merged PRs (30d)
6

Description

https://scratch.mit.edu/discuss/topic/865743/

Expected Behavior

When dragging code to the backpack, it lights up.
When dropping code over the backpack, it gets stored in the backpack.

Actual Behavior

The backpack doesn't always light up.
When dropping the code normally, it doesn't get stored even if the backpack lights up. To get the code into the backpack, one has to activate the backpack with a different finger than the one the blocks are dragged with.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to the Scratch editor on a mobile while signed in.
  2. Open the backpack.
  3. Place a block in the sprite.
  4. Drag and drop the block over the backpack
    → the block doesn't get stored

Screenshots

https://github.com/user-attachments/assets/3b24ca1d-24e0-408a-8757-633c97096547

System Details

Android, Chrome 138

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

Start by reproducing the backpack drag-and-drop behavior in the Scratch editor on Android with Chrome 138, then trace the touch handling for dragging blocks and activating the backpack. Done means dragging a block with one finger consistently highlights the backpack and stores the block when it is dropped there.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, mobile-dev
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.