mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 08:07:49 +00:00
On macOS, with tap to click and a third-party input method active, WebKit can deliver a tap's mousedown after the button is already up (WebKit bug 219670). Tauri's drag-region script starts the native drag on any mousedown, so AppKit ran its drag loop with no release left to end it and the window followed the pointer until the next click. On macOS the title bar now uses its own drag region: a drag starts only when the mousedown has the primary button down, and the new window_start_drag command checks NSEvent.pressedMouseButtons before start_dragging. Double-click zoom stays on mouseup and is cancelled by movement. The handlers are installed once per page. Windows and Linux keep data-tauri-drag-region. Refs #760 Co-authored-by: ntbang0901 <121003585+ntbang0901@users.noreply.github.com>