Skip to content

cause of jumping when reaching the top and having a lower limit #172

Closed
@tylkomat

Description

@tylkomat

The Line 166 in src/modules/viewport.js causes the jumping.

When having a limit of index 1 as the top then the mentioned line forces a padding to be added to viewport.scrollTop, since paddingHeight is negative. This scrolls the viewport down again, while the user scrolls up, which causes the jumping.

When this line is removed everything works as expected when having a lower limit. On the other hand without a lower limit, ui-scroll will fetch new items indefinitely.

There should be a check which only executes that line when the beginning (buffer.bof === false) was not reached.

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