Skip to content

[3/4] feat: scroll the timeline by touch and move only the selected clip - #323

Merged
dazzatronus merged 1 commit into
fix/trim-start-sourcefrom
feat/touch-timeline-input
Dec 2, 2026
Merged

dazzatronus merged 1 commit into
fix/trim-start-sourcefrom
feat/touch-timeline-input

Conversation

@dazzatronus

@dazzatronus dazzatronus commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

On touch, the timeline took every gesture as a clip drag, so a pan that started on a clip couldn't scroll. Now touch handles each pointer event separately:

  • A tap selects.
  • A pan scrolls the timeline unless it starts on the selected clip.
  • The playhead drags on Android.

touch-action: none applies only to the selected clip and the playhead. To move a clip by touch, tap it first. The clip icon passes touches through to the clip, because iOS Safari cancels a drag that starts on it. A pen taps before it drags, and a pen right-click still opens the clip menu. Mouse input is unchanged.

Verify: on a Pixel 8 emulator (Chrome) and an iPhone 18 Pro simulator (Safari, iOS 27.2), a pan that starts on an unselected clip scrolls the timeline; before, it dragged the clip. On the Pixel 8 the playhead now drags to 5 s, where it used to stop at 3.18 s. On the iPhone 18 Pro a selected clip drags 2 s without a hold and moves 1.97 s with its length unchanged, whether the drag starts on its label or its icon.

# PR Adds Why it is separate
1/4 #316 Dragged clips and trim edges stay under the pointer Bug fix for mouse and touch
2/4 #317 Dragging a clip's start trims the source Changes what the start handle does
3/4 #323 (this PR) Touch scrolls the timeline; only the selected clip takes drags New touch input model
4/4 #324 44 px touch targets for handles and the clip menu Hit areas only, no visual change

Merge bottom-up. Retarget each PR to main after its predecessor lands.

@dazzatronus
dazzatronus added this pull request to stack #325 December 1, 2026 23:48
@dazzatronus
dazzatronus merged commit 5578aaa into main Dec 2, 2026
1 check passed
@dazzatronus
dazzatronus deleted the feat/touch-timeline-input branch December 2, 2026 01:00
github-actions Bot pushed a commit that referenced this pull request Dec 2, 2026
# [2.34.0](v2.33.3...v2.34.0) (2026-12-02)

### Bug Fixes

* generate ids where crypto.randomUUID is unavailable ([#319](#319)) ([bc3af37](bc3af37))
* keep dragged clips and trim edges under the pointer ([#316](#316)) ([b56587d](b56587d))
* keep the playback time clear of the zoom controls ([#321](#321)) ([9867adc](9867adc))
* load edits that send to YouTube ([#326](#326)) ([78a2a1d](78a2a1d))
* report the published version from VERSION ([#320](#320)) ([2aed44a](2aed44a))
* stop iOS zooming the page when a text field takes focus ([#318](#318)) ([4b8a4d0](4b8a4d0))
* trim the source when dragging a clip's start ([#317](#317)) ([f6c471c](f6c471c))

### Features

* enlarge touch targets without changing how the editor looks ([#324](#324)) ([29f30f6](29f30f6))
* scroll the timeline by touch and move only the selected clip ([#323](#323)) ([5578aaa](5578aaa))
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.34.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