javascript - jQuery beforeScroll event -
What is the first cycling event in jQuery? Or can this type of incident be repeated?
We have a scenario where we need an event before a division with overflow: scroll is scrolled. The problem with using the .scroll event is that the device was scrolled in comparison to the previous one.
No, there is no such event. Scroll event (for special reasons) can not be canceled And I think this action takes place after the fire, so that the Scrolltop and Scrolllight are right on reaching the property.
May be possible to capture the key down event for the mousewheel / DOMMouseScroll event and page up, page down, up, down, etc. to work. There is no 100% method, however - you will never be able to stop the user from interacting with the scrollbar components of the browser.
If you want to find the amount of scrolled user, then you can set a timer to store the current scrollLeft / scrollTop >. Em> see the new value vs. in a variable and then in the scroll event.
Comments
Post a Comment