(fix) current cursor fix

This commit is contained in:
kirillsaint 2024-01-21 13:56:59 +06:00
parent 4c14924eb3
commit 006737e127

View File

@ -72,6 +72,7 @@ public class MouseCursorHandler {
public boolean enableCursor(final CursorType cursorType) {
if(SystemCursors.isSupported()) {
SystemCursors.setCursor(cursorType.getCursor());
this.currentCursor = cursorType;
return true;
} else {
if (this.customCursorDisabled) {
@ -101,6 +102,7 @@ public class MouseCursorHandler {
public void disableCursor() {
if(SystemCursors.isSupported()) {
this.currentCursor = CursorType.NORMAL;
SystemCursors.setCursor(SystemCursors.ARROW);
} else {
if (this.customCursorDisabled) {