mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
add a move threshold to track DnD
This commit is contained in:
parent
0929faf830
commit
08eb25ef55
1 changed files with 7 additions and 0 deletions
|
|
@ -7055,6 +7055,13 @@ Editor::mid_track_drag (GdkEventMotion* ev, Gtk::Widget& w)
|
|||
w.translate_coordinates (edit_controls_vbox, ev->x, ev->y, xo, yo);
|
||||
|
||||
if (track_drag->first_move) {
|
||||
|
||||
/* move threshold */
|
||||
|
||||
if (abs (yo - track_drag->previous) < (int) (4 * UIConfiguration::instance().get_ui_scale())) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!track_drag->track->selected()) {
|
||||
set_selected_track (*track_drag->track, Selection::Set, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue