Skip to content

inverse still not working correctly #418

Open

Description

@dmitryshelomanov

The scroller doesn't compensate scroll position when items are loaded

Activity

  1. iamdarshshah commented on Apr 12, 2026

    @iamdarshshah
    Collaborator

    This is a known limitation in v7.1.0. When new items are prepended in inverse mode, the browser does not automatically compensate the scroll position, causing a jump. The component does not currently implement scroll anchoring for this case.

    The browser's native overflow-anchor CSS property can help in some cases, but it is not reliable across all scroll containers. A proper fix would require measuring the scroll height before and after the prepend and adjusting scrollTop accordingly.

    This is tracked as a future improvement. PRs welcome if you want to take a pass at it.

  2. dev-keshav commented on Nov 2, 2026

    @dev-keshav

    Hi! I'd like to contribute a fix for this issue. I'll first reproduce the scroll-position jump when items are prepended in inverse mode, then investigate a solution that preserves the user's viewport and add regression tests. Is this issue still available, and are there any implementation preferences I should follow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions