Pretty simple code:
html:
<div id="wrap" style="background-color:gray; height:2000px;">
</div>
js:
<script type="text/javascript">
$(document).ready(function(){
$(document).on('mouseup', function(e) {
console.log(" mouse up \n");
})
});
</script>
I replaced $(document)
with $(window)
but with no effect.
Browser: FF 13.0
How to make it work ?
EDIT:
OMG, I used scroll instead of clicking the mouse to get the 'mouseup' event. What a silly mistake !!!