Fixes media editing undo
This commit is contained in:
parent
d9990c162e
commit
e81821f4a6
2 changed files with 18 additions and 1 deletions
|
@ -109,7 +109,7 @@ export class FabricHistory extends EventEmitter {
|
|||
}
|
||||
|
||||
if (this.canRedo()) {
|
||||
this.snapshots.splice(this.highWatermark, this.snapshots.length);
|
||||
this.snapshots.splice(this.highWatermark + 1, this.snapshots.length);
|
||||
}
|
||||
|
||||
this.snapshots.push({ canvasState: this.getState(), imageState });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue