Skip to content

Commit

Permalink
fix(useScroll): the expected result cannot be returned after setting …
Browse files Browse the repository at this point in the history
…the throttle parameter (#2390)

Fixes #2389
  • Loading branch information
LittleSound committed Nov 8, 2022
1 parent 39b5e2c commit 9cd9219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useScroll/index.ts
Expand Up @@ -189,7 +189,7 @@ export function useScroll(
useEventListener(
element,
'scroll',
throttle ? useThrottleFn(onScrollHandler, throttle) : onScrollHandler,
throttle ? useThrottleFn(onScrollHandler, throttle, true, false) : onScrollHandler,
eventListenerOptions,
)

Expand Down

0 comments on commit 9cd9219

Please sign in to comment.