Akryum / Akryum/vue-virtual-scroller

Support scroll-behavior: smooth with scrollToBottom

Aberta
#844 0 comentários 3 reações 0 responsáveis Ver no GitHub
bug
Linguagem predominante
TypeScript
Estrelas
10.8k
Forks
973
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### 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
- https://codesandbox.io/p/devbox/funny-solomon-3hsgld?file=%2Fsrc%2FApp.vue%3A35%2C21-35%2C35

### Reproduction

- https://codesandbox.io/p/devbox/funny-solomon-3hsgld?file=%2Fsrc%2FApp.vue%3A35%2C21-35%2C35

### System Info

```shell
google
```

### Used Package Manager

yarn

### Validations

- [X] Read the [docs](https://github.com/Akryum/vue-virtual-scroller/blob/master/packages/vue-virtual-scroller/README.md).
- [X] Check that there isn't [already an issue](https://github.com/Akryum/vue-virtual-scroller/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/Akryum/vue-virtual-scroller/discussions).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.