(event: PointerEvent | globalThis.PointerEvent)
| 23 | |
| 24 | useEffect(() => { |
| 25 | function handlePointerMove(event: PointerEvent | globalThis.PointerEvent) { |
| 26 | const origin = resizeOriginRef.current; |
| 27 | if (!origin) { |
| 28 | return; |
| 29 | } |
| 30 | const delta = event.clientX - origin.startX; |
| 31 | onSidebarWidthChange(origin.startWidth + delta); |
| 32 | } |
| 33 | |
| 34 | function handlePointerUp(event: globalThis.PointerEvent) { |
| 35 | const origin = resizeOriginRef.current; |
nothing calls this directly
no outgoing calls
no test coverage detected