Fix : Undo/redo for eraser

This commit is contained in:
jdescottes
2014-05-16 22:40:09 +02:00
parent 21a759d8eb
commit 7569a4343c
3 changed files with 234 additions and 1 deletions

View File

@@ -193,7 +193,7 @@
);
}
$.publish(Events.CURSOR_MOVED, [coords.x, coords.y]);
}
};
ns.DrawingController.prototype.onMousewheel_ = function (jQueryEvent) {
var event = jQueryEvent.originalEvent;

View File

@@ -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);
};
})();