1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-12 06:01:13 +02:00

Bug 2565 - (Residual) Fix auto-scroll regression.

My fix for 2565 broke autoscroll.

Scrubbing can be 'paused' when it is not active!
This meant that paused scrubbing could stop autoscroll
of normal play.  The fix is to only suppress the autoscroll
if scrubbing is active and paused.
This commit is contained in:
James Crook 2021-02-13 10:49:52 +00:00
parent 716c7794e0
commit 7428c61060

View File

@ -202,8 +202,12 @@ void PlayIndicatorOverlay::OnTimer(wxCommandEvent &event)
auto mode = ProjectAudioManager::Get( *mProject ).GetLastPlayMode();
if (!pinned &&
mode != PlayMode::oneSecondPlay &&
!gAudioIO->IsPaused() &&
!scrubber.IsPaused()
!gAudioIO->IsPaused() &&
// Bug 2656 allow scrolling when paused in
// scrubbing/play-at-speed.
// ONLY do this additional test if scrubbing/play-at-speed
// is active.
(!scrubber.IsScrubbing() || !scrubber.IsPaused())
)
{
auto newPos = playPos;