mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 05:38:39 -05:00
Disable mouse lock hack for linux
This commit is contained in:
parent
963e26bc07
commit
88978cc633
@ -27,6 +27,7 @@ void MouseTracker::OnMouseMoved(wxMouseEvent& event) {
|
||||
|
||||
if (isMouseDown || isMouseRightDown) {
|
||||
#ifndef __APPLE__
|
||||
#ifndef __linux__
|
||||
if (horizDragLock && vertDragLock) {
|
||||
target->WarpPointer(originMouseX * ClientSize.x, (1.0 - originMouseY) * ClientSize.y);
|
||||
mouseX = originMouseX;
|
||||
@ -38,6 +39,7 @@ void MouseTracker::OnMouseMoved(wxMouseEvent& event) {
|
||||
target->WarpPointer(originMouseX * ClientSize.x, event.m_y);
|
||||
mouseX = originMouseX;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user