Hi is it possible to disable window scrolling without using overflow:hidden;
when i'm hover an element?
i tryed :
$('.chat-content').on('mouseenter',function(){
$(document).scroll(function(e){
if(!$(e).hasClass('.chat-content'))
e.stopPropagation();
e.preventDefault();
});
});
i mean, i want to leave visible the scrollbar but when i scroll out of the element i'm over with mouse the window doesn't scrolls, while the element i'm over can scroll
So disable scroll for body but not for element i'm over without using css
here is another try i did: http://jsfiddle.net/SHwGL/