From ed277ec47750999f656c841508a0596ac8082c90 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sat, 8 Aug 2015 12:36:45 -0400 Subject: [PATCH] Bugs 1069, 1131: Time-shift of label tracks works as you would expect... ... and time-shifting of any track continues even when mouse drags over the empty space --- src/TrackPanel.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index 463a045d3..43d0fd030 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -4113,17 +4113,9 @@ void TrackPanel::DoSlide(wxMouseEvent & event) // find which track the mouse is currently in (mouseTrack) - // this may not be the same as the one we started in... -#ifdef USE_MIDI Track *mouseTrack = FindTrack(event.m_x, event.m_y, false, false, NULL); - if (!mouseTrack || (mouseTrack->GetKind() != Track::Wave && - mouseTrack->GetKind() != Track::Note)) { -#else - WaveTrack *mouseTrack = - (WaveTrack *)FindTrack(event.m_x, event.m_y, false, false, NULL); - if (!mouseTrack || mouseTrack->GetKind() != Track::Wave) { -#endif - return; - } + if (mouseTrack == NULL) + mouseTrack = mCapturedTrack; // Start by undoing the current slide amount; everything // happens relative to the original horizontal position of