修复橡皮擦没有撤回功能
This commit is contained in:
@@ -96,6 +96,9 @@ class myCanvas {
|
||||
this.canvas.on("object:modified", ()=>{
|
||||
this.updateCanvasState('')
|
||||
});
|
||||
this.canvas.on("mouse:up",()=>{
|
||||
if(this.canvas.freeDrawingBrush.isEraser)this.updateCanvasState()
|
||||
});
|
||||
|
||||
this.canvasKeyDown = this.canvasKeyDown.bind(this);
|
||||
this.canvasKeyUp = this.canvasKeyUp.bind(this);
|
||||
|
||||
Reference in New Issue
Block a user