mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-17 15:11:56 -06:00
FIX: test HasCapture before CaptureMouse
Change-Id: Ia18b2288b4601c1ae8769d56e5bf46b886a1264e
This commit is contained in:
parent
0da5585582
commit
8d0f19fd6a
3 changed files with 10 additions and 5 deletions
|
@ -237,7 +237,8 @@ void Button::mouseDown(wxMouseEvent& event)
|
|||
pressedDown = true;
|
||||
if (canFocus)
|
||||
SetFocus();
|
||||
CaptureMouse();
|
||||
if (!HasCapture())
|
||||
CaptureMouse();
|
||||
}
|
||||
|
||||
void Button::mouseReleased(wxMouseEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue