()
| 132 | }; |
| 133 | |
| 134 | let onHoverEnd = () => { |
| 135 | // Before the preview opens, cancel a pending warmup if the pointer leaves the trigger. Once |
| 136 | // open, the safe-area polygon (useSafeArea) governs closing as the pointer moves to the popover. |
| 137 | if (!state.isOpen) { |
| 138 | pointerInSafeArea.current = false; |
| 139 | state.close(); |
| 140 | } |
| 141 | }; |
| 142 | |
| 143 | let onTriggerFocus = e => { |
| 144 | if (ignoreFocus.current) { |
no test coverage detected