Repository navigation
[2/2] feat: pinch and pan the canvas on touch - #330
Merged
Merged
Conversation
github-actions Bot
pushed a commit
that referenced
this pull request
Dec 2, 2026
# [2.35.0](v2.34.0...v2.35.0) (2026-12-02) ### Features * add canvas zoom buttons for touch screens ([#328](#328)) ([4869fab](4869fab)) * lift a clip with a long press on touch ([#327](#327)) ([70a1690](70a1690)) * pinch and pan the canvas on touch ([#330](#330)) ([7ac2c33](7ac2c33)) * zoom the timeline with a pinch ([#329](#329)) ([97ed07c](97ed07c))
|
🎉 This PR is included in version 2.35.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fingers on the canvas now zoom about their midpoint and pan, through the same
zoomBymaths as the buttons. One finger behaves as before. A second finger landing mid-drag puts the clip back where it started and records nothing: no history entry, and the document only gets back the keys the drag changed. A key the drag created is restored as an undefined value, which JSON and the render payload read as absent.Safari's
gesturestartandgesturechangeare prevented only while a touch pinch is on the canvas, so trackpad zoom on macOS is unchanged. Ctrl+wheel and middle-button pan are unchanged.This PR is 537 delta lines, mostly tests for the gesture tracker, the cancel paths and the Canvas wiring.
Verify: on both devices:
visualViewport.scalestays 1.On the iPhone, a one-finger drag edits exactly as on 2.34.0. A second finger landing mid-drag leaves the edit byte-identical, with no history entry.
npx jest: 2779 pass.Merge bottom-up. Retarget the 2/2 PR to
mainafter the 1/2 lands.