fixes
This commit is contained in:
parent
37b50ab901
commit
bc96f37817
2 changed files with 5 additions and 6 deletions
|
|
@ -230,9 +230,9 @@ export default {
|
||||||
changeSuspendStateLinear(e)
|
changeSuspendStateLinear(e)
|
||||||
const { id, suspend } = e
|
const { id, suspend } = e
|
||||||
if (suspend) {
|
if (suspend) {
|
||||||
unsuspendableIds.value.add(id)
|
|
||||||
} else {
|
|
||||||
unsuspendableIds.value.delete(id)
|
unsuspendableIds.value.delete(id)
|
||||||
|
} else {
|
||||||
|
unsuspendableIds.value.add(id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -266,7 +266,6 @@ export default {
|
||||||
changeSuspendState: changeSuspendStateAncestors,
|
changeSuspendState: changeSuspendStateAncestors,
|
||||||
updateVirtualHeight: updateVirtualHeightAncestors,
|
updateVirtualHeight: updateVirtualHeightAncestors,
|
||||||
reset: resetTreeScrollVirtualization,
|
reset: resetTreeScrollVirtualization,
|
||||||
scrollTo: treeScrollTo,
|
|
||||||
} = useVirtualScrolling({
|
} = useVirtualScrolling({
|
||||||
name: 'Ancestors',
|
name: 'Ancestors',
|
||||||
enabled: treeScrollCompensation,
|
enabled: treeScrollCompensation,
|
||||||
|
|
@ -315,9 +314,7 @@ export default {
|
||||||
|
|
||||||
// # Scrolling
|
// # Scrolling
|
||||||
const scrollTo = (ids) => {
|
const scrollTo = (ids) => {
|
||||||
if (isTreeView.value) {
|
if (isLinearView.value) {
|
||||||
return treeScrollTo(ids)
|
|
||||||
} else {
|
|
||||||
return linearScrollTo(ids)
|
return linearScrollTo(ids)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -384,6 +381,7 @@ export default {
|
||||||
// # Scrolling
|
// # Scrolling
|
||||||
diveToTopLevel,
|
diveToTopLevel,
|
||||||
diveIntoStatus,
|
diveIntoStatus,
|
||||||
|
unsuspendableIds,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,7 @@
|
||||||
:data-status-id="element.id"
|
:data-status-id="element.id"
|
||||||
:data-vs-height="element.height"
|
:data-vs-height="element.height"
|
||||||
:data-vs-top="element.top"
|
:data-vs-top="element.top"
|
||||||
|
:data-vs-suspend="element.suspendable"
|
||||||
|
|
||||||
@goto="setFocused"
|
@goto="setFocused"
|
||||||
@dive="diveIntoStatus(element.id)"
|
@dive="diveIntoStatus(element.id)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue