Added event-triggers for dragged status

This commit is contained in:
Erik Tiekstra
2017-05-17 14:14:24 +02:00
parent 6ac64d18bd
commit ae9c75265d
4 changed files with 16 additions and 1 deletions
+3 -1
View File
@@ -22,8 +22,10 @@ var Canvas = fabric.util.createClass(fabric.Canvas, {
this.on('mouse:up', function () {
if (this.getImage().__moved) {
this.getApertures().setTransparent(false);
// Trigger event to tell the image has been dragged.
$(document).trigger('PIE:dragged');
}
$(this.upperCanvasEl).css('cursor', 'default');
this.renderAll();
});
},