chore: adjust the delay for scroller

This commit is contained in:
jialin
2025-05-20 19:33:10 +08:00
parent 1c11e73ff8
commit ec45f23485
+3 -1
View File
@@ -44,6 +44,8 @@ export const overlaySollerOptions: UseOverlayScrollbarsParams = {
defer: true
};
const RESETSCROLLDELAY = 5000;
/**
*
* @param options.theme: if set theme, it will fix the theme
@@ -162,7 +164,7 @@ export default function useOverlayScroller(data?: {
}
timerRef.current = setTimeout(() => {
stopUpdatePosition.current = false;
}, 1500);
}, RESETSCROLLDELAY);
}, []);
// add wheel event