web-pull-to-refresh
web-pull-to-refresh copied to clipboard
if the distance of the content element from the top of the page is > 0 the reload is triggered also when the scrollTop != 0
this happens because at line 81, the scrollTop of the body is used:
pan.startingPositionY = dcoument.body.scrollTop;
instead of the contentEL. So to fix this replace line 81 with
pan.startingPositionY = options.contentEl.scrollTop;
Also there are other references to document.body in this lib. Is this lib intended to be used with another element than body?
Doesn't work well for me :'(
@patriziomunzi in your case you make it work with an element that is not body right? I tried your fix but it does not seem to work for me :(