Akryum / Akryum/vue-virtual-scroller

When `overflow: hidden` is used, manually setting `scrollTop` or `scrollLeft` can also normally update the elements in the window.

未關閉
#860 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
TypeScript
星號
10.8k
分支
973
PR 合併指標
30 天內沒有已合併 PR

描述

### Clear and concise description of the problem

When I try to use CSS’s `overflow: hidden` and control the scroll position through JavaScript’s `scrollTop` or `scrollLeft`, the scrolling behavior works as expected. However, the elements in the window do not update. The window still displays the previous DOM elements (i.e., the elements at the new position are not rendered correctly).

Note: When `overflow: auto` or `overflow: scroll` is used, everything works as expected. But this does not meet my requirement of setting the scroll position only through `scrollTop` or `scrollLeft` in the code.

### Suggested solution

I’m not familiar with the implementation of this project, **but if possible, I hope that when `overflow: hidden` is used, manually setting `scrollTop` or `scrollLeft` can also normally update the elements in the window.**

### Alternative

_No response_

### Additional context

_No response_

### 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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。