Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Configurable canvas cursor style #85

Open
christian-byrne opened this issue Aug 22, 2024 · 0 comments
Open

[feature request] Configurable canvas cursor style #85

christian-byrne opened this issue Aug 22, 2024 · 0 comments

Comments

@christian-byrne
Copy link

underscore_x (Discord):

please tell me someone has already made an extension / provided instructions on how to change the cursor from the crosshair thing

It's not currently configurable via user.css because it gets set to hard-coded "crosshair" in mouse handler:

litegraph.js/src/litegraph.js

Lines 6484 to 6491 in 3387e16

//Search for corner
if (this.canvas) {
if (node.inResizeCorner(e.canvasX, e.canvasY)) {
this.canvas.style.cursor = "se-resize";
} else {
this.canvas.style.cursor = "crosshair";
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant