feat: slider

This commit is contained in:
2025-12-12 09:30:40 +01:00
parent d32e9f76ef
commit ac90829ebd
+2
View File
@@ -82,6 +82,8 @@ export default ({
// Reflect external progress into the slider UI
useEffect(() => {
if (seekingRef.current) return;
if (typeof progress === "number" && layout?.width) {
const max = layout.width - INITIAL_BOX_SIZE;
const clamped = Math.max(0, Math.min(1, progress));