Skip to content

Commit

Permalink
chore: event passive false (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo837 committed May 17, 2024
1 parent f968c9e commit 406f011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FixedHolder/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const FixedHolder = React.forwardRef<HTMLDivElement, FixedHeaderProps<any>>((pro
e.preventDefault();
}
}
scrollRef.current?.addEventListener('wheel', onWheel);
scrollRef.current?.addEventListener('wheel', onWheel, { passive: false });

return () => {
scrollRef.current?.removeEventListener('wheel', onWheel);
Expand Down

0 comments on commit 406f011

Please sign in to comment.