You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
This doesn't seem to work with Chrome 69.0.3497.105 on iOS 11.3. I've also tried multiple other solutions and that had seemed to work before from the reactions of others but they do not work for me for this version.
I know what's wrong. When a page is short, scrollling down (panning up) doesn't actually scroll the page, so scrolling up (panning down) will activate pull-to-refresh.
Activity
[-]Pull to refresh isn't disable in iOS[/-][+]Pull to refresh isn't disable on iOS[/+]nghiepdev commentedon Aug 6, 2018
Maybe the issue on the chrome recent versions.
Jonathan002 commentedon Oct 5, 2018
This doesn't seem to work with Chrome 69.0.3497.105 on iOS 11.3. I've also tried multiple other solutions and that had seemed to work before from the reactions of others but they do not work for me for this version.
Other solutions I've tried:
apptaro commentedon Nov 5, 2018
we need to add { passive: false } for touch move like:
because from some version of Chrome, event listeners are default passive true.
nghiepdev commentedon Nov 5, 2018
@apptaro Thank for your support.
It works!
I just published the new patch version for the issue.
shivamsupr commentedon Nov 5, 2018
@nghiepit It's still happening just for the initial load it doesn't happen. check this https://o1l55wryq.codesandbox.io.
To replicate:
Scroll up once and then scroll down. You'll see pull-to-refresh.
apptaro commentedon Nov 5, 2018
I know what's wrong. When a page is short, scrollling down (panning up) doesn't actually scroll the page, so scrolling up (panning down) will activate pull-to-refresh.
https://github.com/nghiepit/prevent-pull-refresh/blob/master/index.js#L78
here, "maybePrevent" shouldn't be set to false unless window.pageYOffset !== 0.
nghiepdev commentedon Nov 6, 2018
@apptaro
Did you mean?
With me. It's still happening, same issue @shivamsupr .
Can you help me test and make a pull request?
Thank you in advance.