preliminary change to avoid unnecessary stuff happening when track drags do not reorder
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user