()
| 623 | } |
| 624 | |
| 625 | const clearDrag = () => { |
| 626 | if (drag === null) return |
| 627 | const { axis, pointerId } = drag |
| 628 | drag = null |
| 629 | stopScrolling(axis) |
| 630 | restoreViewportSnap() |
| 631 | if (axis.thumb?.hasPointerCapture?.(pointerId) === true) { |
| 632 | axis.thumb.releasePointerCapture(pointerId) |
| 633 | } |
| 634 | } |
| 635 | |
| 636 | const endDrag = (event: PointerEvent) => { |
| 637 | if (drag !== null && event.pointerId === drag.pointerId) clearDrag() |
no test coverage detected