Added event-triggers for dragged status
This commit is contained in:
@@ -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();
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user