"scroll"
does not fire when content is overflow: hidden
. "wheel"
fires for wheel mouses but not on a magic trackpad or magic mouse. How can I detect the mouse interaction of attempting to scroll in this scenario?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can get the mouse coordinates and other properties like movement
easily.
Using that position you can choose when trigger an wheel event or just make the script to scroll the page.
check this fiddle (not mine) to get inspired