Upstream cursor style (#405)

This commit is contained in:
Chenlei Hu
2024-12-29 23:39:23 -05:00
committed by GitHub
parent 1c6d34e948
commit 8856983597

View File

@@ -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) {