scratchfoundation / scratchfoundation/scratch-blocks
Implement inertial pan and possibly bounce on workspace
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 1.6k
- Avg merge
- 4h 51m
- Merged PRs (30d)
- 12
Description
Consider Zynga Scroller:
visit on a touch device:
https://zynga.github.io/scroller/demo/dom.html
Once we have an optimized workspace pan, I'd like us to consider using this in Scratch-Blockly. It has a great API that I think would be very quick to integrate in, and would likely make workspace panning "feel" very good (with a bit of animation, inertia, etc., as you expect a panning surface to behave). On a mouse device, we can make the workspace behave exactly as it does now (no bounce, no inertia).
Of course before we put it in we'll need to make the actual workspace pan perform well :)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the current workspace pan implementation and the Zynga Scroller demo linked in the issue. Clarify whether touch panning should include inertia, bounce, or both, while preserving the existing mouse behavior. Done means workspace panning is optimized and the agreed touch interaction works without changing mouse-device behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100