Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery鼠标滚轮插件只触发一次_Jquery_Mousewheel - Fatal编程技术网

jQuery鼠标滚轮插件只触发一次

jQuery鼠标滚轮插件只触发一次,jquery,mousewheel,Jquery,Mousewheel,我正在使用jquery鼠标滚轮检测滚动事件。 问题是我想在有滚动事件时调用函数,而不是在每次鼠标滚轮事件时调用它。(仅调用一次,例如在滚动开始处) 有办法做到这一点吗 我想要一些像:: $('.inner').mousewheel( event ){ my_function_to_be_called_only_once() } 我希望这是你想要的答案不,对不起,但我想保留事件侦听器。我只想在有一个鼠标滚轮事件时调用我的函数,并忽略触发的其他滚动鼠标滚轮事件。

我正在使用jquery鼠标滚轮检测滚动事件。 问题是我想在有滚动事件时调用函数,而不是在每次鼠标滚轮事件时调用它。(仅调用一次,例如在滚动开始处) 有办法做到这一点吗

我想要一些像::

$('.inner').mousewheel( event ){
    my_function_to_be_called_only_once()
}

我希望这是你想要的答案不,对不起,但我想保留事件侦听器。我只想在有一个鼠标滚轮事件时调用我的函数,并忽略触发的其他滚动鼠标滚轮事件。