Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

ladjzero/fling.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Inject this javascript to your webview and it will report scroll state of the webview.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published