13
0

add a move threshold to track DnD

This commit is contained in:
Paul Davis 2024-05-21 11:05:32 -06:00
parent d631a6562f
commit 34cc408ebb

View File

@ -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);
}