scratchfoundation / scratchfoundation/scratch-editor

stage clipping on mobile

Open
#321 1 comment 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

Expected Behavior
fix
Actual Behavior
bug
Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to 'https://scratch.mit.edu/projects/1217622680/' on a phone

Setting the canvas css to max-width:480px; width=100%; height:75vw seems to fix the display issues but the mousex and mousey incorrectly register adjusted coordinates

System Details

Production issue on both android and iphone

Screenshots
If applicable, add screenshots to help explain your problem.

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 on a phone at https://scratch.mit.edu/projects/1217622680/ and inspect the stage canvas sizing and pointer-coordinate handling; no source files or tests are named in the issue. Done means the stage is no longer clipped on Android and iPhone, while mousex and mousey still correspond to the correct canvas coordinates.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.