mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-11-22 14:01:54 +03:00
debug
This commit is contained in:
1 parent
f77975cee5
commit
fd030de669
1 file changed
+3
-2
@@ -1361,7 +1361,8 @@ class App extends React.Component<AppProps, AppState> {
|
||||
document.querySelector(".excalidraw")!,
|
||||
).getPropertyValue("--color-selection");
|
||||
|
||||
if(!this.state.shouldCacheIgnoreZoom) console.log(`renderScene`);
|
||||
const now = Date.now();
|
||||
if(!this.state.shouldCacheIgnoreZoom) console.log(`renderScene`,now);
|
||||
renderScene(
|
||||
{
|
||||
elements: renderingElements,
|
||||
@@ -1399,7 +1400,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
this.setState({ scrolledOutside });
|
||||
}
|
||||
this.scheduleImageRefresh();
|
||||
if(!this.state.shouldCacheIgnoreZoom) setTimeout(()=>console.log(`after renderScene`));
|
||||
if(!this.state.shouldCacheIgnoreZoom) setTimeout(()=>console.log(`after renderScene`,now));
|
||||
},
|
||||
},
|
||||
THROTTLE_NEXT_RENDER && window.EXCALIDRAW_THROTTLE_RENDER === true,
|
||||
|
||||
Reference in new issue
Block a user