Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

Fix history saving for resizing/dragging element (#292)

Gunay Mert Karadogan3eb6d1de68f4
diff --git a/src/index.tsx b/src/index.tsx
index 199884a4c5..0c61158bb0 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -829,6 +829,8 @@ export class App extends React.Component<{}, AppState> {
draggingElement: null,
elementType: "selection"
});
+
+ history.resumeRecording();
this.forceUpdate();
};
@@ -1058,7 +1060,6 @@ export class App extends React.Component<{}, AppState> {
history.pushEntry(history.generateCurrentEntry(elements));
history.clearRedoStack();
}
- history.resumeRecording();
}
}