From ae465109201b30fa61b643d72aaf374265c6a9ed Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 20 Jul 2023 09:59:23 +0400 Subject: [PATCH] Cancel system move if didn't start (macOS). --- ui/platform/mac/ui_window_mac.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/platform/mac/ui_window_mac.mm b/ui/platform/mac/ui_window_mac.mm index 514ef32..9d91f3c 100644 --- a/ui/platform/mac/ui_window_mac.mm +++ b/ui/platform/mac/ui_window_mac.mm @@ -105,7 +105,10 @@ public: _dragStarted = _checkStartDrag(); } else if (([e type] == NSEventTypeLeftMouseDragged) && _dragStarted) { - return _checkPerformDrag([e window]); + if (_checkPerformDrag([e window])) { + return true; + } + _dragStarted = false; } } return false;