()
| 409 | // Without capture (a plain press that never moved) the finger can leave |
| 410 | // the bar; the lift ends with it. |
| 411 | const onPointerLeave = () => { |
| 412 | if (pointer.current && !pointer.current.moved) { |
| 413 | endDrag(); |
| 414 | } |
| 415 | }; |
| 416 | |
| 417 | const onPointerUp = (event: React.PointerEvent<HTMLDivElement>) => { |
| 418 | const { current } = pointer; |