Hi is it possible to disable window scrolling without using overflow:hidden; when i\'m hover an element?
overflow:hidden;
i tryed :
$(\'.chat-content\').
Without external variables:
$('.element').bind('mousewheel', function(e, d) { if((this.scrollTop === (this.scrollHeight - this.offsetHeight) && d < 0) || (this.scrollTop === 0 && d > 0)) { e.preventDefault(); } });