Fixed minor glitch on audio display
Originally committed to SVN as r139.
This commit is contained in:
parent
b5388c3bf9
commit
2383c68bac
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue