In a html page i am calling a function at window scroll down in some cases i dosen't want to call window scroll down event(function) then how can i dsable window scroll down event. am using code:
$(window).scroll(function(){
var wintop = $(window).scrollTop(),
docheight = $(document).height(),
winheight = $(window).height();
var scrolltrigger = 0.95;
if ((wintop/(docheight-winheight)) > scrolltrigger) {
//console.log('scroll bottom');
add();
}
});
Please help me if any one knows solution.