From 8dc5ec339ce98eec159f984f5df7e82a03de5a6d Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 30 Dec 2024 02:19:17 +0100 Subject: [PATCH] Decrease "MIN_SCROLL_AMOUNT_PX" to 1px Got removed from 00170c8e4a9ab22efd303bd4132483711a6c83e8 due to rebasing and squashing... --- 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 411cffe1..afe0bbf7 100644 --- a/src/modules/core/hooks/useAutomaticScrolling.ts +++ b/src/modules/core/hooks/useAutomaticScrolling.ts @@ -11,7 +11,7 @@ import { ScrollDirection } from '@/modules/core/Core.types.ts'; import { useResizeObserver } from '@/modules/core/hooks/useResizeObserver.tsx'; // "scrollBy" and "scrollTo" both require at least a change of 1px, otherwise, nothing happens -const MIN_SCROLL_AMOUNT_PX = 1.5; +const MIN_SCROLL_AMOUNT_PX = 1; const getScrollAmount = ( amountPerMs: number, speedMs: number,