任何想法如何使用滚动事件函数来忽略javascript / jquery中的on scroll事件。
例如:我想要这样的事情:
$(document).scroll(function(){
disable on scroll of mouse (such that $(document).scroll(function() should not be called when user scroll the page)
// do stuff
enable on scroll of mouse (such that $(document).scroll(function() can be called when the user scrolls the page)
});
Any help will be highly useful