From d10d2bdedc58aa9c02203f905724e26007d24876 Mon Sep 17 00:00:00 2001 From: lllucius Date: Sat, 6 Dec 2014 10:15:18 +0000 Subject: [PATCH] Fix for bug #756 The problem was that the mouse capture was not being reset when the pointer left the track panel. In that case, as long as no buttons are down, the capture state needs to be reset so that when the mouse re-enters the track panel it figures out what is going on from a clean slate. --- src/TrackPanel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index 34447bc25..7653e0383 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -6113,6 +6113,11 @@ void TrackPanel::OnMouseEvent(wxMouseEvent & event) ReleaseMouse(); } + if (event.Leaving() && !event.ButtonIsDown(wxMOUSE_BTN_ANY)) + { + SetCapturedTrack(NULL); + } + switch( mMouseCapture ) { case IsVZooming: