zotero/js-build
abaevbog a07117c938
Patch react-virtualized to fix react 18 scroll lag (#4370)
React 18 introduced automatic batching which tries to avoid unnecessary
re-rendering (https://react.dev/blog/2022/03/08/react-18-upgrade-guide#automatic-batching).
In some components based on react-virtualized (e.g. tag selector),
it leads to visible lagginess on scroll via keypress or
mouse wheel (not trackpad). This patch wraps setState of the scroll handler
of react-virtualized with ReactDOM.flushSync, which opts out
of automatic batching.

Fixes: #4368
2024-07-11 01:18:25 -04:00
..
.eslintrc Improve build process. Fix #3758 (#3809) 2024-03-08 01:26:24 -05:00
babel-worker.js Patch react-virtualized to fix react 18 scroll lag (#4370) 2024-07-11 01:18:25 -04:00
browserify.js Rename scripts folder to js-build 2023-04-26 04:40:22 -04:00
build.js Rename scripts folder to js-build 2023-04-26 04:40:22 -04:00
clean.js Move pdf-reader submodule to reader 2023-08-08 01:40:24 -04:00
config.js Handle multiple Fluent source files 2023-05-29 22:46:24 -04:00
copy.js Rename scripts folder to js-build 2023-04-26 04:40:22 -04:00
ftl-to-json.mjs Few fixes to ftl-to-json and localize-ftl scripts (#3707) 2024-06-18 06:34:17 -04:00
js.js Rename scripts folder to js-build 2023-04-26 04:40:22 -04:00
localize-ftl.mjs Show current locale in error message in localize-ftl. Fix #4302 2024-07-01 11:08:41 +02:00
note-editor.js Rename scripts folder to js-build 2023-04-26 04:40:22 -04:00
pdf-reader.js Move pdf-reader submodule to reader 2023-08-08 01:40:24 -04:00
pdf-worker.js Rename scripts folder to js-build 2023-04-26 04:40:22 -04:00
sass.js Rename scripts folder to js-build 2023-04-26 04:40:22 -04:00
symlinks.js Rename scripts folder to js-build 2023-04-26 04:40:22 -04:00
utils.js Few fixes to ftl-to-json and localize-ftl scripts (#3707) 2024-06-18 06:34:17 -04:00
watch.js JS Build: Fix watch exits if omni update fails 2024-04-02 17:38:15 +02:00