diff --git a/src/widgets/Ruler.cpp b/src/widgets/Ruler.cpp index 4baaa354d..579e29a2a 100644 --- a/src/widgets/Ruler.cpp +++ b/src/widgets/Ruler.cpp @@ -1911,11 +1911,23 @@ void AdornedRulerPanel::RegenerateTooltips() if (mIsRecording) { this->SetToolTip(_("Timeline actions disabled during recording")); } - else if (!mQuickPlayEnabled) { - this->SetToolTip(_("Quick-Play disabled")); - } else { - this->SetToolTip(_("Quick-Play enabled")); + switch(mPrevZone) { + case StatusChoice::EnteringQP : + if (!mQuickPlayEnabled) { + this->SetToolTip(_("Quick-Play disabled")); + } + else { + this->SetToolTip(_("Quick-Play enabled")); + } + break; + case StatusChoice::EnteringScrubZone : + this->SetToolTip(_("Scrub Bar")); + break; + default: + this->SetToolTip(NULL); + break; + } } } else { @@ -2145,7 +2157,7 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt) } // Handle status bar messages - UpdateStatusBar ( + UpdateStatusBarAndTooltips ( evt.Leaving() ? StatusChoice::Leaving : evt.Entering() || changeInZone @@ -2153,21 +2165,6 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt) : StatusChoice::NoChange ); - // Handle popup menus - if (evt.RightDown() && !(evt.LeftIsDown())) { - if(inScrubZone) - ShowScrubMenu(evt.GetPosition()); - else - ShowMenu(evt.GetPosition()); - - // dismiss and clear Quick-Play indicator - HideQuickPlayIndicator(); - - if (HasCapture()) - ReleaseMouse(); - return; - } - auto &scrubber = mProject->GetScrubber(); if (scrubber.HasStartedScrubbing()) { // If already clicked for scrub, preempt the usual event handling, @@ -2230,7 +2227,7 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt) if (HasCapture() && mCaptureState != Button::NoButton) HandlePushbuttonEvent(evt); else if (!HasCapture() && overButtons) { - if (evt.LeftDown()) { + if (evt.ButtonDown()) { auto position = evt.GetPosition(); for (unsigned ii = 0; ii < static_cast(Button::NumButtons); ++ii) { auto button = static_cast