mirror of
https://github.com/aphrody-labs/soundcraft.git
synced 2026-10-13 19:26:53 +00:00
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:
1 parent
157e2a9547
commit
2ec2698331
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user