Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

I can't seem to scroll back to the top after infinite load begins #254

@sterrymdstaff

Description

@sterrymdstaff

Here's the challenge I'm trying to overcome.

When I scroll to the bottom of my table rows (using infinite scroll to wrap a table) I can't scroll all the way to the top of the table again.

Once I get to the top 3-5 rows, the InfiniteScroll component scrolls back down. If I scroll up REALLY slow, I can get back to the top, but that's not going to work for my users.

I tried disabling infinite scroll by passing undefined to infiniteLoadBeginEdgeOffset.

Then I use handleScroll to start infinite scroll again when scrolling starts.

I see 2 problems:

  1. handleScroll get's called regardless of whether or not I do any scrolling.
  2. even without problem number 1, I have no way of preventing infinite scroll when I scroll up.

I'd like to suggest an update that disables infinite scrolling when the user scrolls up.

Do you have any other ideas of how I can fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions