Skip to content

Commit

Permalink
Track LGraphState.draggingCanvas (#409)
Browse files Browse the repository at this point in the history
* Track LGraphState.draggingCanvas

* nit
  • Loading branch information
huchenlei authored Dec 30, 2024
1 parent 3579436 commit edaf293
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 @@ -264,7 +264,6 @@ export class LGraphCanvas {

set isDragging(value: boolean) {
this.state.draggingItems = value
this.#updateCursorStyle()
}

get hoveringOver(): CanvasItem {
Expand Down Expand Up @@ -293,6 +292,7 @@ export class LGraphCanvas {

set dragging_canvas(value: boolean) {
this.state.draggingCanvas = value
this.#updateCursorStyle()
}
// #endregion Legacy accessors

Expand Down

0 comments on commit edaf293

Please sign in to comment.