mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 07:30:11 +00:00
Fix dragging behavior in LGraphCanvas to depend on pointer state
This commit is contained in:
committed by
Chenlei Hu
parent
34eb1c2add
commit
6c037ca629
@@ -3501,7 +3501,7 @@ export class LGraphCanvas {
|
||||
if (e.keyCode == 32) {
|
||||
// space
|
||||
this.read_only = false
|
||||
this.dragging_canvas = this._previously_dragging_canvas ?? false
|
||||
this.dragging_canvas = this._previously_dragging_canvas && this.pointer.isDown
|
||||
this._previously_dragging_canvas = null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user