fix(core): prevent slider thumb jump on pointer release (#990)

This commit is contained in:
rahim
2026-03-17 23:29:23 -07:00
committed by GitHub
parent fc62ea1c0a
commit b9bada9567
4 changed files with 27 additions and 2 deletions
@@ -77,7 +77,7 @@ export const TimeSliderRoot = forwardRef<HTMLDivElement, TimeSliderRootProps>(
getCSSVars: getTimeSliderCSSVars,
onValueCommit: (percent) => {
const media = mediaRef.current;
if (media) media.seek(core.valueFromPercent(percent));
if (media) media.seek(core.rawValueFromPercent(percent));
},
onDragStart,
onDragEnd,