From a0cd8ffba4ade1b5860164cb4ef89a652a68580f Mon Sep 17 00:00:00 2001 From: Tienifr Date: Wed, 25 Oct 2023 16:50:55 +0700 Subject: [PATCH] [fix] VirtualizedList passive event listener warning Close #2601 --- .../src/vendor/react-native/VirtualizedList/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-native-web/src/vendor/react-native/VirtualizedList/index.js b/packages/react-native-web/src/vendor/react-native/VirtualizedList/index.js index c7d68bb71..97f0a9557 100644 --- a/packages/react-native-web/src/vendor/react-native/VirtualizedList/index.js +++ b/packages/react-native-web/src/vendor/react-native/VirtualizedList/index.js @@ -746,7 +746,8 @@ class VirtualizedList extends StateSafePureComponent { setupWebWheelHandler() { if (this._scrollRef && this._scrollRef.getScrollableNode) { this._scrollRef.getScrollableNode().addEventListener('wheel', - this.invertedWheelEventHandler + this.invertedWheelEventHandler, + { passive: true }, ); } else { setTimeout(() => this.setupWebWheelHandler(), 50);