1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 17:49:45 +02:00

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
This commit is contained in:
Paul Licameli 2015-08-08 12:36:45 -04:00
parent 004218fb07
commit ed277ec477

View File

@ -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