Skip to content

when useWindow=false, resize event is ignored #169

@mikabytes

Description

@mikabytes

Describe the bug
I'm running infinite scroller within a div. When I resize the window to make it bigger, I can see white space at the end and the loadMore function is never called.

To Reproduce
https://codesandbox.io/s/ojo9vlvp35

Start the page with a very low window height, then when it has finished loading increase the height of the window and see that white space is showing and more items are not loaded.

Expected behavior
Items to be loaded when the parentNode has changed size.

Screenshots
image

Device (please complete the following information):
ubuntu 18.04, chrome 67

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions