()
| 22 | |
| 23 | useEffect(() => { |
| 24 | const cancelAnimation = () => { |
| 25 | if (hideTimerRef.current) clearTimeout(hideTimerRef.current); |
| 26 | if (rafRef.current) cancelAnimationFrame(rafRef.current); |
| 27 | hideTimerRef.current = null; |
| 28 | rafRef.current = null; |
| 29 | }; |
| 30 | |
| 31 | const unlistenPromise = getCurrentWindow().onDragDropEvent(async (event) => { |
| 32 | const size = await getCurrentWindow().outerSize(); |