I need to disable temporaly event mouseup
when user scroll the div. I test bind scroll event on div and preventDefault
and stopImmadiatePropagation
on event but not work.
Prototype of code:
$(document).ready(function() {
$(document).on("mouseup", "#test", function(e) {
$("body").append('<b style="color:red">Mouse up | </b>');
});
$("#test").scroll(function(e) {
$("body").append('<b style="color:green">Scroll | </b>');
e.preventDefault();
e.stopImmediatePropagation();
});
});
I provide this plunker example: plunker