Skip to content

fix: keep the drag ghost under its clip when the timeline is scrolled - #337

Merged
dazzatronus merged 1 commit into
mainfrom
fix/drag-ghost-scroll
Dec 3, 2026
Merged

dazzatronus merged 1 commit into
mainfrom
fix/drag-ghost-scroll

Conversation

@dazzatronus

Copy link
Copy Markdown
Contributor

The drag ghost, its time tooltip, the drop zone and the luma connector line were positioned in the tracks' content coordinates, but they sit in a layer that doesn't scroll. With the timeline scrolled, they drifted away from their clip by the scroll distance. On a phone, where the timeline is almost always scrolled, a dragged or lifted clip's ghost ran off to the right. They now subtract the tracks' horizontal and vertical scroll.

Verify:

  • On the iPhone, scrolled 167 px, the ghost's left edge matches the clip's across 78 frames of a drag and 152 of a lift. On 2.35.0 it was 167 px off.
  • On desktop, scrolled 150 px, it's 0 px off (previously 150).
  • Scrolled down 27 px with the clip dragged to the next track, the ghost sits on that track (previously 27 px below it).
  • Unscrolled positions are unchanged.

@dazzatronus
dazzatronus merged commit 8157710 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