Fix pinch-to-zoom performance (#2171)

This commit is contained in:
Pete Hunt 2020-09-21 12:16:34 -07:00 committed by GitHub
parent 2a2630082f
commit 68bdfaefbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3813,7 +3813,9 @@ class App extends React.Component<ExcalidrawProps, AppState> {
Object.keys(selectedElementIds).length !== 0 Object.keys(selectedElementIds).length !== 0
? selectedElementIds ? selectedElementIds
: previousSelectedElementIds, : previousSelectedElementIds,
shouldCacheIgnoreZoom: true,
})); }));
this.resetShouldCacheIgnoreZoomDebounced();
return; return;
} }