From 06d0f7147a85ff2c936c88ffc28320c93068a0d1 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sun, 29 Dec 2024 22:36:26 +0100 Subject: [PATCH] Update auto scroll direction on reader reading direction change --- src/modules/core/hooks/useAutomaticScrolling.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/core/hooks/useAutomaticScrolling.ts b/src/modules/core/hooks/useAutomaticScrolling.ts index ae35683b..359c5ada 100644 --- a/src/modules/core/hooks/useAutomaticScrolling.ts +++ b/src/modules/core/hooks/useAutomaticScrolling.ts @@ -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 }),