web-pull-to-refresh icon indicating copy to clipboard operation
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

Open patriziomunzi opened this issue 10 years ago • 2 comments

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;

patriziomunzi avatar Jun 10 '15 15:06 patriziomunzi

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 :'(

slorber avatar Jun 06 '16 15:06 slorber

@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 :(

slorber avatar Jun 06 '16 15:06 slorber