mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-03 17:19:43 +02:00
Merge pull request #22 from chrisdiamand/master
Don't capture the mouse if it's already captured.
This commit is contained in:
commit
7bcba2a0b6
@ -6126,7 +6126,8 @@ void TrackPanel::OnMouseEvent(wxMouseEvent & event)
|
||||
|
||||
if (event.ButtonDown()) {
|
||||
SetFocus();
|
||||
CaptureMouse();
|
||||
if (!HasCapture())
|
||||
CaptureMouse();
|
||||
}
|
||||
else if (event.ButtonUp()) {
|
||||
if (HasCapture())
|
||||
|
Loading…
x
Reference in New Issue
Block a user