Skip to content

Commit

Permalink
fix(form-builder): use capture for scroll listener in ScrollContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Mar 4, 2021
1 parent 6ebf786 commit d892fed
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const ScrollContainer = React.forwardRef(function ScrollContainer<
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
selfRef.current!.addEventListener('scroll', handleScroll, {
passive: true,
capture: true,
})

return () => {
Expand Down

0 comments on commit d892fed

Please sign in to comment.