如何在滚动事件函数上忽略javascript / jquery

时间:2016-02-06 16:22:33

标签: javascript jquery

任何想法如何使用滚动事件函数来忽略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

0 个答案:

没有答案