Skip to content

Commit

Permalink
fix nullish condition
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-byrne committed Jan 4, 2025
1 parent f162560 commit d37d543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LGraphCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d37d543

Please sign in to comment.