[fix] Stop widget scroll events from being intercepted by LiteGraph

This commit is contained in:
Arjan Singh
2025-09-25 20:10:55 -07:00
parent ac93a6ba3f
commit 81087c111a
3 changed files with 193 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ import { computed, onMounted } from 'vue'
import GlobalDialog from '@/components/dialog/GlobalDialog.vue'
import config from '@/config'
import { usePreserveWidgetScroll } from '@/renderer/extensions/vueNodes/composables/usePreserveWidgetScroll'
import { useWorkspaceStore } from '@/stores/workspaceStore'
import { useConflictDetection } from '@/workbench/extensions/manager/composables/useConflictDetection'
@@ -24,6 +25,9 @@ import { electronAPI, isElectron } from './utils/envUtil'
const workspaceStore = useWorkspaceStore()
const conflictDetection = useConflictDetection()
const isLoading = computed<boolean>(() => workspaceStore.spinner)
// Preserve native scrolling in Vue widgets
usePreserveWidgetScroll()
const handleKey = (e: KeyboardEvent) => {
workspaceStore.shiftDown = e.shiftKey
}