Skip to content

if the distance of the content element from the top of the page is > 0 the reload is triggered also when the scrollTop != 0  #5

@patriziomunzi

Description

@patriziomunzi

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions