Trigger 'dummy' mouse wheel event

前端 未结 9 1015
隐瞒了意图╮
隐瞒了意图╮ 2021-01-03 22:30

Is there a way to trigger a scroll wheel event with an arbitrary delta. Just like jQuery does with \'click\' like:

$(\'#selector\').trigger(\'click\');
         


        
9条回答
  •  情歌与酒
    2021-01-03 23:09

    Have you tried this? http://jquerytools.org/documentation/toolbox/mousewheel.html A plugin to "take control of the mousewheel" :)

提交回复
热议问题