1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-04 14:39: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,7 +2173,9 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
mShowScrubbing &&
mScrubZone.Contains(evt.GetPosition());
const StatusChoice zone =
overButtons
evt.Leaving()
? StatusChoice::Leaving
: overButtons
? button
: inScrubZone
? StatusChoice::EnteringScrubZone
@ -2194,9 +2196,7 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
// Handle status bar messages
UpdateStatusBarAndTooltips (
evt.Leaving()
? StatusChoice::Leaving
: evt.Entering() || changeInZone
evt.Leaving() || evt.Entering() || changeInZone
? zone
: StatusChoice::NoChange
);