"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?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
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