From 4f4df5bb329f83a41fdd3cc741826076676923d3 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 7 Jul 2022 10:05:09 -0700 Subject: [PATCH] Potential fix for laggy scrolling --- patches/react-virtualized+9.22.3.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/react-virtualized+9.22.3.patch diff --git a/patches/react-virtualized+9.22.3.patch b/patches/react-virtualized+9.22.3.patch new file mode 100644 index 000000000..afb434db7 --- /dev/null +++ b/patches/react-virtualized+9.22.3.patch @@ -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",