Potential fix for laggy scrolling

This commit is contained in:
Fedor Indutny 2022-07-07 10:05:09 -07:00 committed by GitHub
parent 778f3721a6
commit 4f4df5bb32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,14 @@
diff --git a/node_modules/react-virtualized/dist/commonjs/Grid/Grid.js b/node_modules/react-virtualized/dist/commonjs/Grid/Grid.js
index 0b46931..2972cef 100644
--- a/node_modules/react-virtualized/dist/commonjs/Grid/Grid.js
+++ b/node_modules/react-virtualized/dist/commonjs/Grid/Grid.js
@@ -864,7 +864,8 @@ function (_React$PureComponent) {
(0, _requestAnimationTimeout.cancelAnimationTimeout)(this._disablePointerEventsTimeoutId);
}
- this._disablePointerEventsTimeoutId = (0, _requestAnimationTimeout.requestAnimationTimeout)(this._debounceScrollEndedCallback, scrollingResetTimeInterval);
+ this._debounceScrollEndedCallback();
+ // this._disablePointerEventsTimeoutId = (0, _requestAnimationTimeout.requestAnimationTimeout)(this._debounceScrollEndedCallback, 0);
}
}, {
key: "_handleInvalidatedGridSize",