This commit is contained in:
Henry Jameson 2026-09-16 00:31:47 +03:00
commit bc96f37817
2 changed files with 5 additions and 6 deletions

View file

@ -230,9 +230,9 @@ export default {
changeSuspendStateLinear(e)
const { id, suspend } = e
if (suspend) {
unsuspendableIds.value.add(id)
} else {
unsuspendableIds.value.delete(id)
} else {
unsuspendableIds.value.add(id)
}
}
@ -266,7 +266,6 @@ export default {
changeSuspendState: changeSuspendStateAncestors,
updateVirtualHeight: updateVirtualHeightAncestors,
reset: resetTreeScrollVirtualization,
scrollTo: treeScrollTo,
} = useVirtualScrolling({
name: 'Ancestors',
enabled: treeScrollCompensation,
@ -315,9 +314,7 @@ export default {
// # Scrolling
const scrollTo = (ids) => {
if (isTreeView.value) {
return treeScrollTo(ids)
} else {
if (isLinearView.value) {
return linearScrollTo(ids)
}
}
@ -384,6 +381,7 @@ export default {
// # Scrolling
diveToTopLevel,
diveIntoStatus,
unsuspendableIds,
}
},
}

View file

@ -109,6 +109,7 @@
:data-status-id="element.id"
:data-vs-height="element.height"
:data-vs-top="element.top"
:data-vs-suspend="element.suspendable"
@goto="setFocused"
@dive="diveIntoStatus(element.id)"