1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Eliminate idle event handler of CellularPanel...

... achieving the intent of b7386c2db1 by other
means
This commit is contained in:
Paul Licameli
2019-07-07 13:39:16 -04:00
parent 9b98f4be0c
commit bff30b6ae9
6 changed files with 27 additions and 9 deletions

View File

@@ -103,7 +103,6 @@ BEGIN_EVENT_TABLE(CellularPanel, OverlayPanel)
EVT_SET_FOCUS(CellularPanel::OnSetFocus)
EVT_KILL_FOCUS(CellularPanel::OnKillFocus)
EVT_CONTEXT_MENU(CellularPanel::OnContextMenu)
EVT_IDLE(CellularPanel::OnIdle)
END_EVENT_TABLE()
CellularPanel::CellularPanel(
@@ -473,12 +472,6 @@ void CellularPanel::OnContextMenu(wxContextMenuEvent & WXUNUSED(event))
DoContextMenu();
}
void CellularPanel::OnIdle(wxIdleEvent &event)
{
event.Skip();
HandleCursorForPresentMouseState();
}
/// Handle mouse wheel rotation (for zoom in/out, vertical and horizontal scrolling)
void CellularPanel::HandleWheelRotation( TrackPanelMouseEvent &tpmEvent )
{