From 280f724d09095c7489745b58057e16b5d883bf38 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Thu, 1 Aug 2019 07:01:35 -0400 Subject: [PATCH] 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 --- src/ProjectWindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ProjectWindow.cpp b/src/ProjectWindow.cpp index 309fcdecf..4afcb12ee 100644 --- a/src/ProjectWindow.cpp +++ b/src/ProjectWindow.cpp @@ -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()