Skip to content

Vue: Scroll reset/jump when going up with dynamic height rows #925

Open
@exception-producer

Description

@exception-producer

Describe the bug

When scrolling to the bottom of the list of dynamically sized rows and going back up, the scrolling view gets stuck and jumps back to the bottom around when the last row goes out of view. This does only seem to happen with the vue version though, but can already be reproduced with the documentation's example.

One can "escape" by scrolling up very quickly, but this should not happen, of course.

This sometimes also happens in random places of the list - however only when scrolling up. I've not been able to reproduce this consistently yet though. The root cause seems to be the same.

Your minimal, reproducible example

https://tanstack.com/virtual/v3/docs/framework/vue/examples/dynamic

Steps to reproduce

  1. Go to https://tanstack.com/virtual/v3/docs/framework/vue/examples/dynamic
  2. Scroll to the bottom
  3. Try scrolling back up

Expected behavior

That it scrolls as one would expect

How often does this bug happen?

Every time

Screenshots or Videos

db58462b-f3fd-4a74-99e3-65fad6f9300e.webm

Platform

every

tanstack-virtual version

3.13.0

TypeScript version

No response

Additional context

No response

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

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