1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 16:49:41 +02:00

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.
This commit is contained in:
lllucius 2014-12-06 10:15:18 +00:00
parent fdfcc0ec4d
commit d10d2bdedc

View File

@ -6113,6 +6113,11 @@ void TrackPanel::OnMouseEvent(wxMouseEvent & event)
ReleaseMouse();
}
if (event.Leaving() && !event.ButtonIsDown(wxMOUSE_BTN_ANY))
{
SetCapturedTrack(NULL);
}
switch( mMouseCapture )
{
case IsVZooming: