When I tried to change the default scroll bar property, I found that it\'s not convenient by rewriting callback function for scroll() or onscroll e
MDN about onwheel:
Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
The onwheel event gets fired when the mouse wheel is scrolled. This physical action may or may not also result in scroll events.
Basically, onscroll is what you need.