(moveEvent: MouseEvent)
| 33 | document.body.style.overflow = "hidden" |
| 34 | |
| 35 | const onMouseMove = (moveEvent: MouseEvent) => { |
| 36 | const pos = local.direction === "horizontal" ? moveEvent.clientX : moveEvent.clientY |
| 37 | const delta = local.direction === "vertical" ? start - pos : pos - start |
| 38 | current = startSize + delta |
| 39 | const clamped = Math.min(local.max, Math.max(local.min, current)) |
| 40 | local.onResize(clamped) |
| 41 | } |
| 42 | |
| 43 | const onMouseUp = () => { |
| 44 | document.body.style.userSelect = "" |
nothing calls this directly
no outgoing calls
no test coverage detected