preliminary change to avoid unnecessary stuff happening when track drags do not reorder

This commit is contained in:
Paul Davis
2024-08-08 18:46:11 -06:00
parent c4224b2a5a
commit 550b38fb00
2 changed files with 4 additions and 0 deletions

View File

@@ -6174,6 +6174,7 @@ Editor::maybe_move_tracks ()
/* in top half of this track, move spacer */
track_drag->bump_track = tv;
move_selected_tracks (true);
track_drag->did_reorder = true;
}
} else if (track_drag->direction > 0) {
@@ -6183,6 +6184,7 @@ Editor::maybe_move_tracks ()
if (track_drag->current > (tv->y_position() + (tv->effective_height() / 2))) {
track_drag->bump_track = tv;
move_selected_tracks (false);
track_drag->did_reorder = true;
}
}

View File

@@ -2628,6 +2628,7 @@ private:
bool have_predrag_cursor;
int direction;
bool first_move;
bool did_reorder;
TrackDrag (RouteTimeAxisView* rtav, ARDOUR::Session& s)
: track (rtav)
@@ -2640,6 +2641,7 @@ private:
, have_predrag_cursor (false)
, direction (0)
, first_move (true)
, did_reorder (false)
{}
};