apeatling / web-pull-to-refresh

A native-like JavaScript pull to refresh implementation for the web.
https://apeatling.com/articles/javascript-pull-to-refresh-web/
MIT License
545 stars 93 forks source link

Doesnt work on webkit (touch devices) and android web view #24

Open razcakappa opened 7 years ago

razcakappa commented 7 years ago

Tried with Google Chrome Version 59.0.3071.86 (Official Build) (64-bit) Tried with Android Web View version 58 It stuck on pull down. However it happens only when selects a touch device http://pix.toile-libre.org/upload/original/1498626667.png

razcakappa commented 7 years ago

To recreate the issue, open the demo http://apeatling.com/demos/web-ptr/ with Google chrome and open inspect window. and try to reload the page. And try the pull to refresh functionality. It might be broken

razcakappa commented 7 years ago

Found the issue. Might be related to hammer.js is not triggering the 'panend' event when the element has css property 'touch-action: pan-y'. https://github.com/hammerjs/hammer.js/issues/1103

Shall I submit a merge request?