Skip to content

Commit

Permalink
[fix] VirtualizedList passive event listener warning
Browse files Browse the repository at this point in the history
Close #2601
  • Loading branch information
tienifr authored and necolas committed Apr 3, 2024
1 parent 8cf720f commit a0cd8ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,8 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
setupWebWheelHandler() {
if (this._scrollRef && this._scrollRef.getScrollableNode) {
this._scrollRef.getScrollableNode().addEventListener('wheel',
this.invertedWheelEventHandler
this.invertedWheelEventHandler,
{ passive: true },
);
} else {
setTimeout(() => this.setupWebWheelHandler(), 50);
Expand Down

0 comments on commit a0cd8ff

Please sign in to comment.