Skip to content

Commit

Permalink
Revert "[fix] VirtualizedList passive event listener warning"
Browse files Browse the repository at this point in the history
This reverts commit a0cd8ff.

Fix #2658
Close #2667
  • Loading branch information
necolas committed May 17, 2024
1 parent 25ef6bd commit 2098b1f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,7 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
setupWebWheelHandler() {
if (this._scrollRef && this._scrollRef.getScrollableNode) {
this._scrollRef.getScrollableNode().addEventListener('wheel',
this.invertedWheelEventHandler,
{ passive: true },
this.invertedWheelEventHandler
);
} else {
setTimeout(() => this.setupWebWheelHandler(), 50);
Expand Down

0 comments on commit 2098b1f

Please sign in to comment.