Open tuanla8793 opened 2 years ago
File: libs\builder\undo.js Current code
addMutation : function(mutation) { /* this.mutations.push(mutation); this.undoIndex++; */ Vvveb.Builder.frameBody.trigger("vvveb.undo.add"); this.mutations.splice(++this.undoIndex, 0, mutation); },
I updated so undo and redo work correctly
addMutation : function(mutation) { /* this.mutations.push(mutation); this.undoIndex++; */ Vvveb.Builder.frameBody.trigger("vvveb.undo.add"); this.mutations.splice(++this.undoIndex, this.mutations.length - this.undoIndex, mutation); },
Please check and update the repository source.
Thanks for the fix, I included it in the last commit.
File: libs\builder\undo.js Current code
I updated so undo and redo work correctly
Please check and update the repository source.