Check if user is scrolling with trackpad?

后端 未结 5 1067
鱼传尺愫
鱼传尺愫 2020-12-08 23:16

I have created a site where users are able to scroll through a gallery using mouse scroll or arrow up/down. It is working like I want it to, and changing one image pr scroll

5条回答
  •  -上瘾入骨i
    2020-12-09 00:03

    I ran into a similar problem with a "section-change" plugin that I created. I ended resolving it with an "animation" variable: the wheel action only works if this variable is set to 'false' and once this is triggered the variable switches to 'true', then I would switch the variable back to 'false' once the animation is completed. Hope this helps!

提交回复
热议问题