mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-05 06:01:04 +01:00
More rapid response from tooltips for pushbuttons, on Mac at least
This commit is contained in:
@@ -383,8 +383,12 @@ void AButton::OnMouseEvent(wxMouseEvent & event)
|
||||
wxSize clientSize = GetClientSize();
|
||||
AButtonState prevState = GetState();
|
||||
|
||||
if (event.Entering())
|
||||
if (event.Entering()) {
|
||||
auto text = GetToolTipText();
|
||||
UnsetToolTip();
|
||||
SetToolTip(text);
|
||||
mCursorIsInWindow = true;
|
||||
}
|
||||
else if (event.Leaving())
|
||||
mCursorIsInWindow = false;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user