mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix : Undo/redo for eraser
This commit is contained in:
@@ -193,7 +193,7 @@
|
||||
);
|
||||
}
|
||||
$.publish(Events.CURSOR_MOVED, [coords.x, coords.y]);
|
||||
}
|
||||
};
|
||||
|
||||
ns.DrawingController.prototype.onMousewheel_ = function (jQueryEvent) {
|
||||
var event = jQueryEvent.originalEvent;
|
||||
|
||||
@@ -21,4 +21,10 @@
|
||||
ns.Eraser.prototype.applyToolAt = function(col, row, color, frame, overlay, event) {
|
||||
this.superclass.applyToolAt.call(this, col, row, Constants.TRANSPARENT_COLOR, frame, overlay, event);
|
||||
};
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
ns.Eraser.prototype.releaseToolAt = function(col, row, color, frame, overlay, event) {
|
||||
this.superclass.releaseToolAt.call(this, col, row, Constants.TRANSPARENT_COLOR, frame, overlay, event);
|
||||
};
|
||||
})();
|
||||
Reference in New Issue
Block a user