I am executing Javascript onScroll
.
My code works great with any normal computer mouse, but when I use my notebook\'s touchpad, I encounter the following situation:
To achieve this, you'd have to distinguish between mouse scroll events and touchpad events, which is not (yet) possible using JavaScript. It was already asked in question How to capture touch pad input.
Pointer Events are currently in state of Editor's Draft and not yet supported by any browser. See also touch events docs on MDN.