forked from mirror/crumbs-original
Pointer events are never synthetically re-dispatched from touch (unlike mouse events), so the tap that opened the editor cannot ghost-click the overlay. This eliminates the mobile first-load bug without relying on an arbitrary delay. Both pointerdown and pointerup must target the overlay itself to trigger close, which also handles the text-selection-outside-editor edge case. https://claude.ai/code/session_018DYwSysqysMmaRi5XkqTpo