perf: Improved pointer events related performance when the sidebar is docked with a large library open (#9086)

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
tothatt81 2025-02-04 22:05:56 +01:00 committed by GitHub
parent 424e94a403
commit 4f64372506
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 212 additions and 152 deletions

View file

@ -7,6 +7,9 @@ import polyfill from "./packages/excalidraw/polyfill";
import { testPolyfills } from "./packages/excalidraw/tests/helpers/polyfills";
import { yellow } from "./packages/excalidraw/tests/helpers/colorize";
// mock for pep.js not working with setPointerCapture()
HTMLElement.prototype.setPointerCapture = vi.fn();
Object.assign(globalThis, testPolyfills);
require("fake-indexeddb/auto");