Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Dec 30, 2024
1 parent a032bb8 commit 21befae
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/LGraphCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,15 @@ export class LGraphCanvas {
this.#updateCursorStyle()
}

get hoveringOver(): CanvasItem {
return this.state.hoveringOver
}

set hoveringOver(value: CanvasItem) {
this.state.hoveringOver = value
this.#updateCursorStyle()
}

/** @deprecated Replace all references with {@link pointer}.{@link CanvasPointer.isDown isDown}. */
get pointer_is_down() {
return this.pointer.isDown
Expand Down Expand Up @@ -3089,8 +3098,7 @@ export class LGraphCanvas {
if (this.resizing_node) underPointer |= CanvasItem.ResizeSe
}

this.state.hoveringOver = underPointer
this.#updateCursorStyle()
this.hoveringOver = underPointer

e.preventDefault()
return
Expand Down

0 comments on commit 21befae

Please sign in to comment.