Update auto scroll direction on reader reading direction change

This commit is contained in:
schroda
2024-12-29 22:36:26 +01:00
parent d90767c71c
commit 06d0f7147a

View File

@@ -151,7 +151,7 @@ export const useAutomaticScrolling = (
}, timeoutMs);
return () => clearInterval(scrollTriggerTimer.current);
}, [refOrCallback, scrollPerSecond, scrollAmountPercentage, screenDimensions, isActive, isPaused]);
}, [refOrCallback, scrollPerSecond, scrollAmountPercentage, screenDimensions, isActive, isPaused, invert, smooth]);
return useMemo(
() => ({ isActive, isPaused, start, cancel, toggleActive, pause, resume }),