fling.js

0.0.1 • Public • Published

fling.js

Inject this javascript to your webview and it reports scroll state of the webview, including start, end and fling.

Demo

http://ladjzero.me/example/fling.js

Or scan the QR code

image

How to use

It calls window.onScrollStateChange once scroll state changes. Possible states are start, fling, end.

Works on chrome based webview which can fire touchend event after touchmove. For other webviews I have to listen to scroll event instead.

Readme

Keywords

Package Sidebar

Install

npm i fling.js

Weekly Downloads

2

Version

0.0.1

License

ISC

Last publish

Collaborators

  • ladjzero