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;