mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
fix nullish condition
This commit is contained in:
committed by
Chenlei Hu
parent
06b6da1353
commit
b1f8afea2f
@@ -3501,7 +3501,7 @@ export class LGraphCanvas {
|
||||
if (e.keyCode == 32) {
|
||||
// space
|
||||
this.read_only = false
|
||||
this.dragging_canvas = this._previously_dragging_canvas && this.pointer.isDown ?? false
|
||||
this.dragging_canvas = (this._previously_dragging_canvas ?? false) && this.pointer.isDown
|
||||
this._previously_dragging_canvas = null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user