mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Simplification: Allow ripple drag even if not on track.
This is now possible as we no longer ripple across tacks
This commit is contained in:
parent
9f137bfd56
commit
fc9a7f16f1
1 changed files with 0 additions and 19 deletions
|
|
@ -2248,25 +2248,6 @@ RegionRippleDrag::RegionRippleDrag (Editor* e, ArdourCanvas::Item* i, RegionView
|
|||
void
|
||||
RegionRippleDrag::motion (GdkEvent* event, bool first_move)
|
||||
{
|
||||
/* Which trackview is this ? */
|
||||
|
||||
pair<TimeAxisView*, double> const tvp = _editor->trackview_by_y_position (current_pointer_y ());
|
||||
RouteTimeAxisView* tv = dynamic_cast<RouteTimeAxisView*> (tvp.first);
|
||||
|
||||
/* The region motion is only processed if the pointer is over
|
||||
an audio track.
|
||||
*/
|
||||
|
||||
if (!tv || !tv->is_track()) {
|
||||
/* To make sure we hide the verbose canvas cursor when the mouse is
|
||||
not held over an audiotrack.
|
||||
*/
|
||||
_editor->verbose_cursor()->hide ();
|
||||
return;
|
||||
}
|
||||
|
||||
samplepos_t where = adjusted_current_sample (event);
|
||||
assert (where >= 0);
|
||||
MusicSample after (0, 0);
|
||||
double delta = compute_x_delta (event, &after);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue