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

Can not scroll up on ios 9 safari #14

Open Pana opened 8 years ago

Pana commented 8 years ago

I have track it was because the _panUp method directly returned cause of pan.distance === 0 is true

Pana commented 8 years ago

If the content is more than just one page

kimchen003 commented 8 years ago

no only pan.distance === 0, i think the touch event has conflicted.can you fix it?

guox191 commented 8 years ago

+1

calledT commented 8 years ago

I find scroll up work only with Hammer.js 2.0.4

pkostadinov-2create commented 8 years ago

I have experienced this issues as well after updating Hammer.js to later version. Please fix, so it is compatible with latest.

slorber commented 8 years ago

As a hint I've noticed in my app (which does not use WPTR but a really close implementation) that using -webkit-overflow-scrolling: touch; seems to mess up with the pull-to-refresh logic, because Safari will translate natively the scrollable container content instead of the PTR implementation. Not sure how it can be fixed because I really need -webkit-overflow-scrolling: touch; more than PTR