How can iScroll have both zoom and onscroll?

version of iScroll

Optimization for iScroll. In order to achieve higher performance, iScroll is divided into multiple versions. You can choose the version that best suits you.

We currently have the following versions:

iscroll.js , this version is a script for regular applications. It contains most commonly used functions, with high performance and small size.
iscroll-lite.js , simplified version. It does not support fast jumps, scroll bars, mouse wheels, and shortcut key bindings. But if all you need is scrolling (especially on mobile platforms) iScroll Lite is a small and fast solution.
iscroll-probe.js , probing the current scrolling position is a demanding task, which is why I decided to build a special version. If you need to know where to scroll at any given time, this is what iScroll gives you. I"m doing more tests, which may end up in regular iscroll.js scripts, please note.
iscroll-zoom.js , adding zooming to the standard scrolling function.
iscroll-infinite.js , you can do unlimited cache scrolling. It is not easy to deal with long list elements for mobile devices. The iScroll infinite version uses a caching mechanism that allows you to scroll through a potentially unlimited number of elements.

my question

The

onscroll event is available only in the probe version, and scaling is available only in the zoom version.
I need to have both zoom and onscroll?

Jul.26,2021

compare the source code directly, adding more code in probe version to zoom

Menu