Cancel system move if didn't start (macOS).

This commit is contained in:
John Preston 2023-07-20 09:59:23 +04:00
parent da7f4fe425
commit ae46510920

View file

@ -105,7 +105,10 @@ public:
_dragStarted = _checkStartDrag(); _dragStarted = _checkStartDrag();
} else if (([e type] == NSEventTypeLeftMouseDragged) } else if (([e type] == NSEventTypeLeftMouseDragged)
&& _dragStarted) { && _dragStarted) {
return _checkPerformDrag([e window]); if (_checkPerformDrag([e window])) {
return true;
}
_dragStarted = false;
} }
} }
return false; return false;