Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Question on event cancelation or replacement

$
0
0
Using the drag event:

$('.tileDiv').on('draginit', function (ev, drag) {
...
});

I would like to disable dragging and ensure that the event bubbles to the parent element (which happens to be a scrolling div), however I am unable to $('.tileDiv').off('draginit') or in some other fashion remove the event listener set with .on.

I've also tried removing related events (touchmove/mousemove etc.), but to no avail.

How can I do this?


Viewing all articles
Browse latest Browse all 3491

Trending Articles