Fixed cursor on move for mac

This commit is contained in:
NeeEoo
2024-04-20 22:10:38 +02:00
parent 4b46ef5382
commit 0b20d3c115
3 changed files with 16 additions and 13 deletions
+2 -1
View File
@@ -1127,13 +1127,14 @@ class StageEditor extends UIState {
for(i=>edge in edges) {
if(checkDot(buttonBoxes[i])) {
// TODO: make it show both sided arrows when resizing, unless its at minimum size then show only one
// TODO: make this rotate with the sprite
currentCursor = switch(edge) {
// RESIZE_NESW; //RESIZE_NS; //RESIZE_NWSE; //RESIZE_WE;
case TOP_LEFT: RESIZE_TL;
case TOP_MIDDLE: RESIZE_T;
case TOP_RIGHT: RESIZE_TR;
case MIDDLE_LEFT: RESIZE_L;
case CENTER_CIRCLE: HAND;
case CENTER_CIRCLE: #if mac FlxG.mouse.pressed ? DRAG : DRAG_OPEN #else MOVE #end;
case MIDDLE_RIGHT: RESIZE_R;
case BOTTOM_LEFT: RESIZE_BL;
case BOTTOM_MIDDLE: RESIZE_B;