1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 08:30:06 +02:00

Show correct context menu for scrubbing phase 2x

This commit is contained in:
Paul Licameli 2016-05-06 20:46:42 -04:00
commit e59617f176

View File

@ -2856,9 +2856,7 @@ void AdornedRulerPanel::OnKillFocus(wxFocusEvent & WXUNUSED(event))
void AdornedRulerPanel::OnContextMenu(wxContextMenuEvent & WXUNUSED(event)) void AdornedRulerPanel::OnContextMenu(wxContextMenuEvent & WXUNUSED(event))
{ {
auto rect = GetRect(); ShowButtonMenu(mTabState.mButton, nullptr);
wxPoint position(rect.GetLeft() + 1, rect.GetBottom() + 1);
ShowMenu(position);
} }
void AdornedRulerPanel::OnCaptureLost(wxMouseCaptureLostEvent & WXUNUSED(evt)) void AdornedRulerPanel::OnCaptureLost(wxMouseCaptureLostEvent & WXUNUSED(evt))