What makes iScroll stand out among other similar scripts is its fantastic set of features that fulfill all the requirements of a web developer.
Here are some of the exciting features of iScroll:
Scroller performs a small bounce animation when it meets the boundary. However, you can disable the bounce as might be the case to provide smoother results on slow or old devices.
By default, this feature is set to be true.
To override the native scrolling features, iScroll inhibits certain behaviors exhibited by the browser. Think of mouse clicks. However, if you want your web application to respond to any click event, you can make that happen by explicitly setting this option to true.
By default, this feature is set to be false.
There are events when you want to keep a native vertical scroll but still keep the option of adding a horizontal iScroll. To achieve this, set this feature to true, and iScroll will react only to horizontal swipes. In the case of vertical swipes, the whole page will be scrolled naturally.
It is essential to mention here that you can set this to horizontal to make the behavior work oppositely. This means native will be set to horizontal scroll, and vertical will be iScroll.
By default, this feature is set to be false.
If you want to activate keyboard interaction, set this feature to true.
By default, this feature is set to be false.
If you want to inverse the mouse wheel support, use this feature. In such a case, the scrolling direction will get inverted. This means that going up will mean scrolling down and vice versa.
By default, this feature is set to be false.
This feature will enable you to display or not display the default scrollbars.
By default, this feature is set to be false.
This feature tracks the mouse wheel event.
By default, this feature is set to be false.
When the user quickly flicks on screen, you can decide to turn on or off the momentum animation. As a matter of fact, turning the momentum off will enhance the performance of your application considerably.
By default, this feature is set to be true.
This feature helps you decide if preventDefault() works or not when the events are fired. To be on the safer side, keep this true unless you really know what you are doing.
By default, this feature is set to be true.
By default, only vertical scrolling is activated. In case when you need horizontal scrolling as well, you need to set scrolX to true.
By default, scrollX is set to be false, and scrollY is set to be true.
This feature comes to action on 2D scrollers, that is, when you need to scroll both vertically and horizontally. This works by locking one direction when you are scrolling in the other. However, there are cases when you just want to scroll with no constraints. In cases like this, you can set this feature to true.
By default, this feature is set to be false.
Set this feature to true to allow iScroll to trigger a custom tap event when the scroll area is tapped or clicked but not scrolled.
This is the best way to define user interaction with clickable elements.
By default, this feature is set to be false.
These were some of the fantastic features of iScroll. As you can see, iScroll has covered most of your needs. If you want a specific feature that is lacking in the present-day iScroll, feel free to contact our technical team now.