From 732f27f319d37d22ab5884d1f8a3b783ed3ffd35 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sun, 29 Dec 2024 22:04:21 +0100 Subject: [PATCH] Fix "rtl" detection in "useAutomaticScrolling" --- 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 11393ff2..143d31ff 100644 --- a/src/modules/core/hooks/useAutomaticScrolling.ts +++ b/src/modules/core/hooks/useAutomaticScrolling.ts @@ -121,7 +121,7 @@ export const useAutomaticScrolling = ( elementStyle.current = getComputedStyle(element); } - const isRTL = elementStyle.current.direction; + const isRTL = elementStyle.current.direction === 'rtl'; const handleScrollX = scrollDirection !== ScrollDirection.Y; const handleScrollY = scrollDirection !== ScrollDirection.X;