1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

Bug 2656 - Cannot horizontal scroll when paused in play-at-speed.

This commit is contained in:
James Crook 2021-02-04 21:49:29 +00:00
parent fef877324d
commit 0e20a0873f

View File

@ -192,6 +192,7 @@ void PlayIndicatorOverlay::OnTimer(wxCommandEvent &event)
viewInfo.GetScreenEndTime() + tolerance);
auto gAudioIO = AudioIO::Get();
const auto &scrubber = Scrubber::Get( *mProject );
// BG: Scroll screen if option is set
if( viewInfo.bUpdateTrackIndicator &&
@ -201,7 +202,9 @@ void PlayIndicatorOverlay::OnTimer(wxCommandEvent &event)
auto mode = ProjectAudioManager::Get( *mProject ).GetLastPlayMode();
if (!pinned &&
mode != PlayMode::oneSecondPlay &&
!gAudioIO->IsPaused())
!gAudioIO->IsPaused() &&
!scrubber.IsPaused()
)
{
auto newPos = playPos;
if (playPos < viewInfo.h) {