mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-22 11:49:38 -05:00
Disable mouse locking on OSX -- causes event loop
This commit is contained in:
parent
65a5dbb24d
commit
97e219724e
@ -15,6 +15,7 @@ void MouseTracker::OnMouseMoved(wxMouseEvent& event) {
|
||||
deltaMouseY = mouseY - lastMouseY;
|
||||
|
||||
if (isMouseDown) {
|
||||
#ifndef __APPLE__
|
||||
if (horizDragLock && vertDragLock) {
|
||||
target->WarpPointer(originMouseX * ClientSize.x, originMouseY * ClientSize.y);
|
||||
mouseX = originMouseX;
|
||||
@ -26,6 +27,7 @@ void MouseTracker::OnMouseMoved(wxMouseEvent& event) {
|
||||
target->WarpPointer(originMouseX * ClientSize.x, event.m_y);
|
||||
mouseX = originMouseX;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
lastMouseX = mouseX;
|
||||
|
Loading…
Reference in New Issue
Block a user