Skip to content

Commit

Permalink
fix nullish condition
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-byrne authored and huchenlei committed Jan 5, 2025
1 parent 06b6da1 commit b1f8afe
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 b1f8afe

Please sign in to comment.