scratchfoundation / scratchfoundation/scratch-blocks

In RTL, blocks don't return to their position after dragging outside the area

Open
#2,094 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

localization Medium Prevalence Medium Severity priority 3
Dominant language
JavaScript
Stars
2.8k
Forks
1.6k
Avg merge
4h 51m
Merged PRs (30d)
12

Description

Expected Behavior

When blocks are dragged outside the area, they should reappear in their original position.

Actual Behavior

In LTR this works as expected. In RTL, the blocks appear in another position.

Steps to Reproduce

Open vertical_playground.html. Change direction to RTL. Add a block to the area. Drag it outside the area, to the pane on the left. It appears in another position.

(I noticed this in scratch, when copying a block into another sprite by dragging it. The block is moved to another position.)

Operating System and Browser

Ubuntu 16.04, Chrome Version 84.0.4147.89 (Official Build) (64-bit).

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 issue in vertical_playground.html: switch the direction to RTL, add a block, and drag it outside the area to the left pane. Trace the drag-out behavior and compare it with LTR handling. Done means the block returns to its original position in RTL as it does in LTR.

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
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.