Disable item stickiness

This commit is contained in:
andrewwallacespeckle
2025-08-08 10:45:56 +01:00
parent 010abb2422
commit abebf2672a
@@ -359,6 +359,7 @@ export function useVirtualTreeList() {
const activeStickyStackRef = useThrottle(rawStickyStackRef, 16) // ~60fps for smooth updates
const lastStartIndex = ref(-1)
const lastStickyStack = ref<number[]>([])
const areTreeItemStickiesEnabled = ref(false)
const findActiveStickyStack = (
startIndex: number,
@@ -410,7 +411,11 @@ export function useVirtualTreeList() {
? unifiedVirtualItems[currentActiveModelIndex]?.modelId
: null
if (currentModelId && currentActiveModelIndex !== undefined) {
if (
areTreeItemStickiesEnabled.value &&
currentModelId &&
currentActiveModelIndex !== undefined
) {
// Only look at tree items between this model and the visible area
const modelStartIndex = currentActiveModelIndex
const activeTreeStickies: number[] = []