Commit 01a1c5b
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments