Skip to content

Infinite Scroll doesn't work if the page is not scrollable #369

Description

@a-magdy

Hi guys,

As always thanks for your great work in this library :)

Issue Type: Bug -an edge case with a workaround-

Platform: Web

Description: Infinite scroll doesn't work if the browser page is not scrollable

Screenshots:

  • 10 items per page on a big screen:
    skaermbillede 2018-05-17 kl 15 44 37

  • or only 1 item per page (as an extreme case):
    skaermbillede 2018-05-17 kl 15 44 15

Minimal reproduction of the problem with instructions:

  • From the booksearch demo, update the pagination to false, and update the page size to 10 or less until the scrollbar disappears
  • Try to scroll down to fetch more, but it won't be possible, until you resize the screen, so that the scrollbar appears, so that the infinite loader works

Reactivesearch version: 2.6.2

Browser: Chrome 66

I am not sure whether this is a real issue, but I thought to start a discussion about it, maybe we could come up with a solution for it in the future, like adding a load more button as proposed in this issue: #126 in case the page is not scrollable, and we are not on the last page yet

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions