| 181 | }; |
| 182 | |
| 183 | let onUpTrack = e => { |
| 184 | let id = e.pointerId ?? e.changedTouches?.[0].identifier; |
| 185 | if (id === currentPointer.current) { |
| 186 | if (realTimeTrackDraggingIndex.current != null) { |
| 187 | state.setThumbDragging(realTimeTrackDraggingIndex.current, false); |
| 188 | realTimeTrackDraggingIndex.current = null; |
| 189 | } |
| 190 | |
| 191 | removeGlobalListener(window, 'mouseup', onUpTrack, false); |
| 192 | removeGlobalListener(window, 'touchend', onUpTrack, false); |
| 193 | removeGlobalListener(window, 'pointerup', onUpTrack, false); |
| 194 | } |
| 195 | }; |
| 196 | |
| 197 | if ('htmlFor' in labelProps && labelProps.htmlFor) { |
| 198 | // Ideally the `for` attribute should point to the first thumb, but VoiceOver on iOS |
nothing calls this directly
no test coverage detected