1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-02 17:23:18 +02:00

Bug2179: time ruler should update while dragging horizontal thumb...

... The fix is not needed on Mac, which already does dispatch idle events
between scroll events
This commit is contained in:
Paul Licameli 2019-08-01 07:01:35 -04:00
parent 05997dc267
commit 280f724d09

View File

@ -1356,6 +1356,14 @@ void ProjectWindow::OnScroll(wxScrollEvent & WXUNUSED(event))
viewInfo.sbarH =
(wxInt64)(mHsbar->GetThumbPosition() / viewInfo.sbarScale) - offset;
DoScroll();
#ifndef __WXMAC__
// Bug2179
// This keeps the time ruler in sync with horizontal scrolling, without
// making an undesirable compilation dependency of this source file on
// the ruler
wxTheApp->ProcessIdle();
#endif
}
void ProjectWindow::DoScroll()