scratchfoundation / scratchfoundation/scratch-blocks

RTL placement of custom procedure definitions onto workspace

Open
#1,695 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

custom procedures needs-triage
Dominant language
JavaScript
Stars
2.8k
Forks
1.6k
Avg merge
4h 51m
Merged PRs (30d)
12

Description

Expected Behavior

Custom procedure blocks in RTL should be placed similarly to blocks in LTR except in the top-right corner of the visible workspace instead of the top-left corner.

Actual Behavior

#1677 helps with this issue a bit as the first block (without scrolling the workspace) gets placed in the top-right corner of the workspace, but subsequent custom procedure blocks are placed far away off screen (possibly around/more than the width of the visible workspace view).

Steps to Reproduce

Add a custom procedure block to a sprite's workspace when in RTL mode.

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 an RTL sprite workspace, then trace the placement logic for custom procedure blocks and compare it with LTR behavior. Verify that the first and subsequent procedure blocks appear within the visible workspace near the top-right without requiring unexpected scrolling.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.