Skip to content

Plugin does not consider resizing #13

@Bilge

Description

@Bilge

If your viewport is large enough to only display one of ten images then scrolling half way will load half of them. However, if you then resize the viewport so that all can be viewed, the remaining half will never load. This is because the plugin assumes the scroll extent never changes. Of course, when the window is resized the scroll extent does change and in fact it can never reach the same position as when the window was smaller so the filter action never triggers for the remaining images.

The solution should be to consider window resizing and trigger the filter action as well as reset the largestPosition property if the scroll extent has decreased (because the window size has increased).

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