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:
parent
bd3348099a
commit
1bff08a75a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user