From bf41984f72a731863ef1ba510dadd0e89aee4f5f Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Wed, 10 Jun 2026 18:29:43 -0700 Subject: [PATCH 1/2] fix: remove broken throttle from VirtualGrid scroll tracking VueUse >=14 throttleFilter drops events spaced wider than the throttle window when leading=false (regression of vueuse#2390), so useScroll with throttle: 64 froze scrollY for discrete mouse-wheel input. Every VirtualGrid consumer (assets sidebar, manager dialog, widget select dropdown) rendered a blank viewport on wheel scroll and never fired approach-end. Trackpad scrolling masked the bug by emitting events faster than the window. Scroll events are frame-aligned and the handler is cheap; drop the throttle and the unused scrollThrottle prop. --- src/components/common/VirtualGrid.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/common/VirtualGrid.vue b/src/components/common/VirtualGrid.vue index 97e568af07c..d1617f34fec 100644 --- a/src/components/common/VirtualGrid.vue +++ b/src/components/common/VirtualGrid.vue @@ -33,7 +33,6 @@ const { items, gridStyle, bufferRows = 1, - scrollThrottle = 64, resizeDebounce = 64, defaultItemHeight = 200, defaultItemWidth = 200, @@ -42,7 +41,6 @@ const { items: (T & { key: string })[] gridStyle: CSSProperties bufferRows?: number - scrollThrottle?: number resizeDebounce?: number defaultItemHeight?: number defaultItemWidth?: number @@ -60,8 +58,11 @@ const itemHeight = ref(defaultItemHeight) const itemWidth = ref(defaultItemWidth) const container = ref(null) const { width, height } = useElementSize(container) +// No throttle: VueUse >=14 throttleFilter drops scroll events spaced wider +// than the throttle window when leading=false (vueuse regression of #2390), +// freezing scrollY for discrete mouse-wheel input. Scroll events are already +// frame-aligned and this handler is cheap, so throttling buys nothing. const { y: scrollY } = useScroll(container, { - throttle: scrollThrottle, eventListenerOptions: { passive: true } }) From c803765c81de0da5f3235b65f07f4cdf6f9b6c7a Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Wed, 10 Jun 2026 20:11:47 -0700 Subject: [PATCH 2/2] Update VirtualGrid.vue --- src/components/common/VirtualGrid.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/common/VirtualGrid.vue b/src/components/common/VirtualGrid.vue index d1617f34fec..4ac6acab8f9 100644 --- a/src/components/common/VirtualGrid.vue +++ b/src/components/common/VirtualGrid.vue @@ -58,10 +58,6 @@ const itemHeight = ref(defaultItemHeight) const itemWidth = ref(defaultItemWidth) const container = ref(null) const { width, height } = useElementSize(container) -// No throttle: VueUse >=14 throttleFilter drops scroll events spaced wider -// than the throttle window when leading=false (vueuse regression of #2390), -// freezing scrollY for discrete mouse-wheel input. Scroll events are already -// frame-aligned and this handler is cheap, so throttling buys nothing. const { y: scrollY } = useScroll(container, { eventListenerOptions: { passive: true } })