1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

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

This commit is contained in:
Paul Licameli 2016-05-12 01:22:07 -04:00
parent bd3348099a
commit 1bff08a75a

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)