'How can I add a onScroll event to iScroll4?

The onScroll event is not yet supported by the iScroll4.

Is there a known way to extend the iScroll to support an onScroll event?



Solution 1:[1]

have a look at the source here: https://github.com/cubiq/iscroll/blob/v4/src/iscroll.js#L127-L139

on lines 127-139 you'll see that you can specify a onScrollStart function.

Maybe you can tweak your way arround with the onScrollStart, onScrollMove and the onScrollEnd callbacks

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jackocnr