add a move threshold to track DnD
This commit is contained in:
parent
d631a6562f
commit
34cc408ebb
@ -7240,6 +7240,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…
Reference in New Issue
Block a user