Skip to content

Commit 01a1c5b

Browse files
committed
fix(ParentedView): mark wheel event listener as passive
The wheel event listener on the viewport container was registered with { capture: true } but without passive: true, triggering a browser violation warning about scroll-blocking event handlers. The handler only calls switchTarget() and never calls preventDefault(), so marking it passive is safe and removes the warning.
1 parent 5762feb commit 01a1c5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/internal/ParentedView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const ParentedView = forwardRef(function ParentedView(
113113
() => {
114114
switchTarget();
115115
},
116-
{ capture: true }
116+
{ capture: true, passive: true }
117117
);
118118

119119
useEventListener(

0 commit comments

Comments
 (0)