1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-05 15:09:08 +02:00

Ruler tooltips no longer appear outside of the ruler

This commit is contained in:
Paul Licameli 2016-05-02 05:22:55 -04:00
parent cac54a3b57
commit 60e3791a22

View File

@ -2173,11 +2173,13 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
mShowScrubbing &&
mScrubZone.Contains(evt.GetPosition());
const StatusChoice zone =
overButtons
? button
: inScrubZone
? StatusChoice::EnteringScrubZone
: StatusChoice::EnteringQP;
evt.Leaving()
? StatusChoice::Leaving
: overButtons
? button
: inScrubZone
? StatusChoice::EnteringScrubZone
: StatusChoice::EnteringQP;
const bool changeInZone = (zone != mPrevZone);
mPrevZone = zone;
@ -2194,11 +2196,9 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
// Handle status bar messages
UpdateStatusBarAndTooltips (
evt.Leaving()
? StatusChoice::Leaving
: evt.Entering() || changeInZone
? zone
: StatusChoice::NoChange
evt.Leaving() || evt.Entering() || changeInZone
? zone
: StatusChoice::NoChange
);
auto &scrubber = mProject->GetScrubber();