mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 08:39:46 +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:
parent
fdfcc0ec4d
commit
d10d2bdedc
@ -6113,6 +6113,11 @@ void TrackPanel::OnMouseEvent(wxMouseEvent & event)
|
||||
ReleaseMouse();
|
||||
}
|
||||
|
||||
if (event.Leaving() && !event.ButtonIsDown(wxMOUSE_BTN_ANY))
|
||||
{
|
||||
SetCapturedTrack(NULL);
|
||||
}
|
||||
|
||||
switch( mMouseCapture )
|
||||
{
|
||||
case IsVZooming:
|
||||
|
Loading…
x
Reference in New Issue
Block a user