From 9ad047b979a1ff4b94bde5cb2c419e465a8e7e38 Mon Sep 17 00:00:00 2001 From: Jack Westbrook Date: Mon, 27 Apr 2026 09:50:02 +0200 Subject: [PATCH 1/2] refactor: use es6 defaults for react 19 compatibility --- src/UI.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/UI.tsx b/src/UI.tsx index 6e434b2..8232b93 100644 --- a/src/UI.tsx +++ b/src/UI.tsx @@ -34,13 +34,13 @@ const RemoveScroll: RemoveScrollUIType = React.forwardRef Date: Mon, 27 Apr 2026 09:53:21 +0200 Subject: [PATCH 2/2] chore(handleScroll): tidy some types --- src/handleScroll.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handleScroll.ts b/src/handleScroll.ts index aa292f4..4fc18ee 100644 --- a/src/handleScroll.ts +++ b/src/handleScroll.ts @@ -78,10 +78,10 @@ const getDirectionFactor = (axis: Axis, direction: string | null) => export const handleScroll = ( axis: Axis, endTarget: HTMLElement, - event: any, + event: WheelEvent | TouchEvent, sourceDelta: number, noOverscroll: boolean -) => { +): boolean => { const directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction); const delta = directionFactor * sourceDelta;