Skip to content

Commit

Permalink
Upstream cursor style
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Dec 30, 2024
1 parent 1c6d34e commit b8e49b5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/LGraphCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3073,8 +3073,12 @@ export class LGraphCanvas {
this.state.hoveringOver = underPointer

if (this.state.shouldSetCursor) {
if (!underPointer) {
this.canvas.style.cursor = ""
if (this.state.draggingCanvas) {
this.canvas.style.cursor = "grabbing"
} else if (this.state.readOnly) {
this.canvas.style.cursor = "grab"
} else if (!underPointer) {
this.canvas.style.cursor = "default"
} else if (underPointer & CanvasItem.ResizeSe) {
this.canvas.style.cursor = "se-resize"
} else if (underPointer & CanvasItem.Node) {
Expand Down

0 comments on commit b8e49b5

Please sign in to comment.