Skip to content

[1/2] feat: make canvas selection handles easier to hit on touch - #335

Merged
dazzatronus merged 1 commit into
mainfrom
feat/touch-canvas-handles
Dec 3, 2026
Merged

dazzatronus merged 1 commit into
mainfrom
feat/touch-canvas-handles

Conversation

@dazzatronus

@dazzatronus dazzatronus commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

The canvas's corner, edge and rotation hit zones are sized for a mouse: 4, 8 and 15 px. On touch, a selected clip now catches a corner within 22 px, an edge within 22 px, and a rotation in a 24 px band beyond each corner.

  • The zones shrink on small clips, so the middle 30% always moves the clip, and the edge takes priority over rotation.
  • Touches are claimed at the stage in Pixi's capture phase, because Pixi's hit test can't tell a finger from a mouse. Mouse and pen hit-testing are unchanged.
  • A selected clip that isn't on screen claims nothing.

Pixi doesn't listen for pointercancel, so a cancelled touch never reached pointerup and left a half-applied change in the edit with no undo step. A cancel from the interaction's own pointer now puts the clip back with no history. On Android, gesture navigation cancels touches about 20 px from the screen edge, which is where a full-frame clip's outer zone sits.

This PR is 445 delta lines. About 68 are source; the rest are tests.

Verify:

  • On both devices:
    • one finger 20 px outside a corner resizes;
    • 20 px inside an edge resizes;
    • 30–40 px beyond a corner rotates;
    • the centre moves the clip.
  • With gesture navigation, a touch 22 px from the Pixel's edge is cancelled and leaves the clip exactly as it was, with no history.
  • With 3-button navigation, the same touch commits, and one undo restores it.
# PR Adds Why it is separate
1/2 #335 (this PR) Touch-sized handles; cancelled touches leave nothing behind Works alone
2/2 #336 Pinch and twist the selected clip Builds on the first PR's touch claim and cancel

Merge bottom-up. Retarget the 2/2 PR to main after the 1/2 lands.

@dazzatronus
dazzatronus added this pull request to stack #339 December 3, 2026 10:49
@dazzatronus
dazzatronus merged commit 0f0fcac into main Dec 3, 2026
1 check passed
github-actions Bot pushed a commit that referenced this pull request Dec 3, 2026
# [2.36.0](v2.35.0...v2.36.0) (2026-12-03)

### Bug Fixes

* keep the drag ghost under its clip when the timeline is scrolled ([#337](#337)) ([8157710](8157710))

### Features

* adapt the timeline toolbar to touch layouts ([#334](#334)) ([9ffcac0](9ffcac0))
* make canvas selection handles easier to hit on touch ([#335](#335)) ([0f0fcac](0f0fcac))
* pinch and twist the selected canvas clip on touch ([#336](#336)) ([e77dc9f](e77dc9f))
* show a clip as lifted during a long press ([#333](#333)) ([122a661](122a661))
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.36.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant