Support scroll-behavior: smooth with scrollToBottom
Author: liusanjin777Created Nov 24, 2023Updated Apr 14, 2026
Labelsbug
Describe the bug
description
- When I added the 'scroll-behavior: smooth;' property to the scrolling container, it conflicted with the 'requestAnimationFrame' in the 'scrollToBottom' function, causing it to fail to scroll correctly to the bottom.
codesandbox
Reproduction
System Info
googleUsed Package Manager
yarn
Validations
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Source: Akryum/vue-virtual-scroller