mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 16:10:09 +00:00
Make LGraphCanvas shallowReactive (#1169)
* Make LGraphCanvas shallowReactive * Restore canvas options after creation
This commit is contained in:
@@ -108,12 +108,12 @@ watchEffect(() => {
|
||||
watchEffect(() => {
|
||||
if (!canvasStore.canvas) return
|
||||
|
||||
if (canvasStore.draggingCanvas) {
|
||||
if (canvasStore.canvas.dragging_canvas) {
|
||||
canvasStore.canvas.canvas.style.cursor = 'grabbing'
|
||||
return
|
||||
}
|
||||
|
||||
if (canvasStore.readOnly) {
|
||||
if (canvasStore.canvas.read_only) {
|
||||
canvasStore.canvas.canvas.style.cursor = 'grab'
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user