Function
onPointerMove
(event: ReactPointerEvent<HTMLDivElement>)
Source from the content-addressed store, hash-verified
| 111 | }; |
| 112 | |
| 113 | const onPointerMove = (event: ReactPointerEvent<HTMLDivElement>): void => { |
| 114 | const state = drag.current; |
| 115 | if (state === null) { |
| 116 | return; |
| 117 | } |
| 118 | const now = props.orientation === 'vertical' ? event.clientX : event.clientY; |
| 119 | props.onChange(clamped(state.from + sign * (now - state.start))); |
| 120 | }; |
| 121 | |
| 122 | const onPointerUp = (event: ReactPointerEvent<HTMLDivElement>): void => { |
| 123 | drag.current = null; |
Callers
nothing calls this directly
Tested by
no test coverage detected