You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/collaboration-manager/src/CollaborationManager.ts
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,8 @@ export class CollaborationManager {
31
31
#undoRedoManager: UndoRedoManager;
32
32
33
33
/**
34
-
* Flag to control whether events should be handled to avoid putting operations to the stack on undo/redo. Used for preventing operations infinity loop on undo/redo
34
+
* Flag to control whether events should be handled to avoid putting operations to the stack on undo/redo.
35
+
* Used for preventing operations infinity loop on undo/redo
35
36
*/
36
37
#shouldHandleEvents =true;
37
38
@@ -98,7 +99,7 @@ export class CollaborationManager {
98
99
* Undo last operation in the local stack
99
100
*/
100
101
publicundo(): void{
101
-
this.#moveBatchToUndo();
102
+
this.#putBatchToUndo();
102
103
103
104
constoperation=this.#undoRedoManager.undo();
104
105
@@ -119,7 +120,7 @@ export class CollaborationManager {
119
120
* Redo last undone operation in the local stack
120
121
*/
121
122
publicredo(): void{
122
-
this.#moveBatchToUndo();
123
+
this.#putBatchToUndo();
123
124
124
125
constoperation=this.#undoRedoManager.redo();
125
126
@@ -265,7 +266,7 @@ export class CollaborationManager {
265
266
* If current operation could not be added to the batch, then terminate current batch and create a new one with current operation
0 commit comments