mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 05:00:03 +00:00
Update litegraph (Zoom speed adjustment) (#580)
This commit is contained in:
@@ -64,6 +64,15 @@ watch(
|
||||
{ immediate: true }
|
||||
)
|
||||
|
||||
const zoomSpeed = computed(() => settingStore.get('Comfy.Graph.ZoomSpeed'))
|
||||
watch(
|
||||
zoomSpeed,
|
||||
(newVal: number) => {
|
||||
if (comfyApp.canvas) comfyApp.canvas['zoom_speed'] = newVal
|
||||
},
|
||||
{ immediate: true }
|
||||
)
|
||||
|
||||
watchEffect(() => {
|
||||
nodeDefStore.showDeprecated = settingStore.get('Comfy.Node.ShowDeprecated')
|
||||
})
|
||||
@@ -94,6 +103,7 @@ onMounted(async () => {
|
||||
await comfyApp.setup(canvasRef.value)
|
||||
comfyApp.canvas.allow_searchbox = !nodeSearchEnabled.value
|
||||
comfyApp.canvas.show_info = canvasInfoEnabled.value
|
||||
comfyApp.canvas['zoom_speed'] = zoomSpeed.value
|
||||
workspaceStore.spinner = false
|
||||
|
||||
window['app'] = comfyApp
|
||||
|
||||
Reference in New Issue
Block a user