Skip to content

[2/4] fix: trim the source when dragging a clip's start - #317

Merged
dazzatronus merged 1 commit into
fix/pointer-offsetsfrom
fix/trim-start-source
Dec 2, 2026
Merged

dazzatronus merged 1 commit into
fix/pointer-offsetsfrom
fix/trim-start-source

Conversation

@dazzatronus

@dazzatronus dazzatronus commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Dragging a clip's start handle moved and resized the clip without changing asset.trim, so the clip slipped instead of trimming. Now the start edge cuts footage from the source, stops at the source's first frame, and is one undo step. This changes desktop behaviour too.

Trim is in timeline units: at speed 2, moving the start 1 s adds 1 to trim. Video lumas follow the trim in preview, matching the export.

This PR is 484 delta lines. About 260 of those are tests: the command and its undo, the luma, and the speed cases. The pre-commit formatter reflowed 3 unrelated lines.

Verify: on a Pixel 8 emulator (Chrome) and an iPhone 18 Pro simulator (Safari), drag a video clip's start handle 1 s right. The start moves +1.00 s, the length −1.00 s and asset.trim +1.00 s; before, trim didn't change. Drag the end handle 1 s left: the length moves −1.00 s and trim stays put.

# 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 (this PR) 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 f6c471c into main Dec 2, 2026
2 checks passed
@dazzatronus
dazzatronus deleted the fix/trim-start-source 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