We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6c830f6 + a31a8bf commit 27f87acCopy full SHA for 27f87ac
src/hooks/useVirtualList.ts
@@ -49,7 +49,7 @@ export const useVirtualList = (nonReactive: INonReactiveData, props: IUseVirtual
49
*/
50
const updateRenderNodes = (isScroll: boolean = false): void => {
51
if (blockLength.value > renderAmount.value) {
52
- const scrollTop = scrollArea.value.scrollTop
+ const scrollTop = Math.max(scrollArea.value.scrollTop, 0)
53
/** 当前滚动了多少节点 */
54
const scrollNodeAmount = Math.floor(scrollTop / props.nodeMinHeight)
55
renderStart.value =
0 commit comments