Skip to content

[1/4] fix: keep dragged clips and trim edges under the pointer - #316

Merged
dazzatronus merged 1 commit into
mainfrom
fix/pointer-offsets
Dec 2, 2026
Merged

dazzatronus merged 1 commit into
mainfrom
fix/pointer-offsets

Conversation

@dazzatronus

@dazzatronus dazzatronus commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

A clip drag took its grab offset when the pointer crossed the 3 px drag threshold, not at pointerdown, so the clip trailed the pointer by that distance. A trim edge also jumped to the pointer's absolute time instead of keeping the offset from where the handle was grabbed: about 0.18 s at a handle's centre. Touch makes both easy to see. A 2 s drag moved a clip 1.66–1.86 s.

On desktop, a drop released right after crossing the threshold now moves the clip by that distance. Before, it was a no-op.

Verify: on a Pixel 8 emulator (Chrome) and an iPhone 18 Pro simulator (Safari, iOS 27.2), drag a selected clip 2 s right. It moves 1.97–2.00 s; before, it moved 1.66–1.86 s. Drag its start handle 1 s right: the start moves 1.00 s, where it used to move 1.18 s. On desktop, a 5 px lead plus a 100 px drag at 50 px/s moves a clip 2.10 s; before, it moved 2.00 s.

# PR Adds Why it is separate
1/4 #316 (this PR) 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 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 #322 December 1, 2026 22:58
@dazzatronus
dazzatronus removed this pull request from stack #322 December 1, 2026 22:58
@dazzatronus
dazzatronus added this pull request to stack #325 December 1, 2026 23:48
@dazzatronus
dazzatronus merged commit b56587d into main Dec 2, 2026
1 check passed
@dazzatronus
dazzatronus deleted the fix/pointer-offsets 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