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

Bug 634 - Timeline does not zoom correctly when playback is paused

Playing + Paused now treated EXACTLY the same as stopped with respect to zooming.
This commit is contained in:
James Crook 2017-08-11 21:51:50 +01:00
parent 01201a5ebd
commit c15bbc59db

View File

@ -6293,8 +6293,9 @@ double AudacityProject::GetScreenEndTime() const
void AudacityProject::ZoomInByFactor( double ZoomFactor )
{
// LLL: Handling positioning differently when audio is active
if (gAudioIO->IsStreamActive(GetAudioIOToken()) != 0) {
// LLL: Handling positioning differently when audio is
// actively playing. Don't do this if paused.
if ((gAudioIO->IsStreamActive(GetAudioIOToken()) != 0) && !gAudioIO->IsPaused()){
ZoomBy(ZoomFactor);
mTrackPanel->ScrollIntoView(gAudioIO->GetStreamTime());
mTrackPanel->Refresh(false);