pref: optimize the timing of scrollbar reset

This commit is contained in:
hayden
2024-11-08 12:42:00 +08:00
parent 3a0676b29f
commit 3b25d3e347
2 changed files with 9 additions and 2 deletions

View File

@@ -298,7 +298,6 @@ const startDragThumb = (event: MouseEvent) => {
watch(
() => props.items,
() => {
init()
setSpacerSize()
calculateScrollThumbSize()
calculateLoadItems()
@@ -311,5 +310,6 @@ onUnmounted(() => {
defineExpose({
viewport,
init,
})
</script>