diff --git a/core/audio_display.cpp b/core/audio_display.cpp index c35b627b6..b7200bbae 100644 --- a/core/audio_display.cpp +++ b/core/audio_display.cpp @@ -1070,6 +1070,12 @@ void AudioDisplay::OnMouseEvent(wxMouseEvent& event) { bool shiftDown = event.m_shiftDown; bool ctrlDown = event.m_controlDown; + // Leaving event + if (event.Leaving()) { + event.Skip(); + return; + } + // Is inside? bool inside = false; if (x >= 0 && y >= 0 && x < w && y < h) {