1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-02 23:23:53 +01:00

Make drag-scrub seek, rather than playing at more than unit speed

* scrubbing2:
  Make drag-scrub seek, rather than playing at more than unit speed
This commit is contained in:
Paul Licameli
2016-05-12 01:22:40 -04:00

View File

@@ -360,7 +360,7 @@ void Scrubber::ContinueScrubbing()
const auto lastTime = gAudioIO->GetLastTimeInScrubQueue();
const auto delta = mLastScrubPosition - position.x;
const double time = viewInfo.OffsetTimeByPixels(lastTime, delta);
result = gAudioIO->EnqueueScrubByPosition(time, mMaxScrubSpeed, false);
result = gAudioIO->EnqueueScrubByPosition(time, mMaxScrubSpeed, true);
mLastScrubPosition = position.x;
}
else {
@@ -667,7 +667,7 @@ Scrubber &ScrubbingOverlay::GetScrubber()
bool Scrubber::PollIsSeeking()
{
return !mDragging && (mAlwaysSeeking || ::wxGetMouseState().LeftIsDown());
return mDragging || (mAlwaysSeeking || ::wxGetMouseState().LeftIsDown());
}
void Scrubber::DoScrub(bool scroll, bool seek)