chore: adjust the delay for scroller

main
jialin 8 months ago
parent 1c11e73ff8
commit ec45f23485

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

Loading…
Cancel
Save