(moveEvent: PointerEvent)
| 97 | let nextWidth = startWidth |
| 98 | |
| 99 | const onPointerMove = (moveEvent: PointerEvent) => { |
| 100 | nextWidth = Math.max(MIN_WIDTH, Math.min(maxWidth, Math.round(startWidth + moveEvent.clientX - startX))) |
| 101 | setPreferredWidth(nextWidth) |
| 102 | } |
| 103 | |
| 104 | const onPointerUp = () => { |
| 105 | persistWidth(nextWidth) |
nothing calls this directly
no outgoing calls
no test coverage detected