Grid moves snap the grabbed clip, not whatever is under the pointer now

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon ThomasandClaude Opus 5.5 committed 2026-10-11 20:56:37 -04:00
1 parent 157e2a9547
commit 2ec2698331
1 file changed
+1 -1
+1 -1
View File
@@ -1684,7 +1684,7 @@ fn drive_drag(app: &mut SoundApp, ctx: &egui::Context) {
Some(Gesture::MoveClips { grab_at, delta, from_track, to_track: tt, .. }) => {
let raw = at - *grab_at;
*delta = if s.edit.edit_mode.is_grid() {
let base = s.track(*from_track).and_then(|t| clip_at(t, at)).map_or(*grab_at, |c| c.start);
let base = s.track(*from_track).and_then(|t| clip_at(t, *grab_at)).map_or(*grab_at, |c| c.start);
snap(&s, base + raw) - base
} else {
raw