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:
parent
004218fb07
commit
ed277ec477
@ -4113,17 +4113,9 @@ void TrackPanel::DoSlide(wxMouseEvent & event)
|
|||||||
|
|
||||||
// find which track the mouse is currently in (mouseTrack) -
|
// find which track the mouse is currently in (mouseTrack) -
|
||||||
// this may not be the same as the one we started in...
|
// 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);
|
Track *mouseTrack = FindTrack(event.m_x, event.m_y, false, false, NULL);
|
||||||
if (!mouseTrack || (mouseTrack->GetKind() != Track::Wave &&
|
if (mouseTrack == NULL)
|
||||||
mouseTrack->GetKind() != Track::Note)) {
|
mouseTrack = mCapturedTrack;
|
||||||
#else
|
|
||||||
WaveTrack *mouseTrack =
|
|
||||||
(WaveTrack *)FindTrack(event.m_x, event.m_y, false, false, NULL);
|
|
||||||
if (!mouseTrack || mouseTrack->GetKind() != Track::Wave) {
|
|
||||||
#endif
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Start by undoing the current slide amount; everything
|
// Start by undoing the current slide amount; everything
|
||||||
// happens relative to the original horizontal position of
|
// happens relative to the original horizontal position of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user