mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-24 01:01:37 +00:00
Root cause: macOS emits a synthetic click event when the right mouse button is released while holding Control. The outside-dismiss handler was listening for click events in capture phase, which caught this synthetic event and closed the menu right after it opened. Fix: switch from click to pointerdown (with event.button === 0 guard) for outside-dismiss detection. pointerdown fires on press before contextmenu, so the right-button event (button:2) is filtered out before the menu even opens, and the synthetic click is never seen.