No, there is no such event. The scroll event cannot be canceled (for obvious reasons), and I would suggest that it fires after the action, so that the scrollTop and scrollLeft properties are accurate on access.
Possible workarounds may be to capture mousewheel / DOMMouseScroll events and key change events for pages up, down, down, up and down. However, there is no 100% method - you can never stop user interaction with browser scroll components. The only true solution is to collapse your own scrollbars.
If you just want to find the amount of user scroll, you can set a timer to store the current scrollLeft / scrollTop in a variable, and then check them and the new values ββin the scroll event.
Andy e
source share