Decrease "MIN_SCROLL_AMOUNT_PX" to 1px

Got removed from 00170c8e4a due to rebasing and squashing...
This commit is contained in:
schroda
2024-12-30 02:19:17 +01:00
parent 00170c8e4a
commit 8dc5ec339c

View File

@@ -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,