(dxPx: number)
| 128 | }; |
| 129 | |
| 130 | const pxToPercent = (dxPx: number): number | null => { |
| 131 | const w = getTrackWidthPx(); |
| 132 | if (w === null) return null; |
| 133 | const p = (dxPx / w) * 100; |
| 134 | return Number.isFinite(p) ? p : null; |
| 135 | }; |
| 136 | |
| 137 | const setPointerCaptureBestEffort = (el: Element, pointerId: number): void => { |
| 138 | try { |
no test coverage detected