I make some changes when starting a drag and drop and want to return them if the crash failed. I wrote this logic in a function called dragend . This works fine in Chrome , but in Firefox the Dragend event does not fire.
Can someone tell me something about this behavior? I am using firefox 22.0 on ubantu.
Code below
$(".view-controller").on("dragover", that.dragOverMain); $(".view-controller").on("dragenter", that.dragEnterMain); $(".view-controller").on("dragexit dragleave", that.dragExitMain); $(".view-controller").on("dragend", that.dragEndMain); $(".view-controller").on("drop", that.dropMain); $(".view-controller").children().on("dragstart", function(e) { that.dragStartChild(e); }); $(".view-controller").children().on("dragend", function(e) { that.dragEndMain(e); }); dragStartChild: function(e) { console.log('dragStartChild'); }, dragEndMain: function(e) { console.log('dragEndMain'); e.preventDefault(); }, dropMain: function(e) { console.log('dropMain'); e.preventDefault(); }, dragExitMain: function(e) { console.log('dragExitMain'); e.preventDefault(); }, dragEnterMain: function(e) { console.log('dragEnterMain'); e.preventDefault(); }, dragOverMain: function(e) { console.log('dragOverMain'); e.preventDefault(); },
source share