1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Make drag scrub less sluggish (do less redrawing)

This commit is contained in:
Paul Licameli 2016-05-15 16:42:36 -04:00
commit a4b98d4997
2 changed files with 4 additions and 4 deletions

View File

@ -517,9 +517,6 @@ void Scrubber::Forwarder::OnMouse(wxMouseEvent &event)
(event.LeftIsDown() && event.Dragging())) {
if (!scrubber.mDragging)
scrubber.mScrubSeekPress = true;
auto xx = ruler->ScreenToClient(::wxGetMousePosition()).x;
ruler->UpdateQuickPlayPos(xx);
ruler->ShowQuickPlayIndicator();
}
else if (event.m_wheelRotation) {
double steps = event.m_wheelRotation /

View File

@ -2426,7 +2426,10 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
else
evt.Skip();
ShowQuickPlayIndicator();
// Don't do this, it slows down drag-scrub on Mac.
// Timer updates of display elsewhere make it unnecessary.
// Done here, it's too frequent.
// ShowQuickPlayIndicator();
if (HasCapture())
ReleaseMouse();