Explorar o código

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

Gunay Mert Karadogan %!s(int64=5) %!d(string=hai) anos
pai
achega
3eb6d1de68
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/index.tsx

+ 2 - 1
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();
   }
 }