Skip to content

Commit 9ad731c

Browse files
committed
Fix for platform discrepencies for setting cursor position
1 parent 454948e commit 9ad731c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

DelvEdit/src/com/interrupt/dungeoneer/editor/ui/PropertiesMenu.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,10 @@ public void touchUp(InputEvent event, float x, float y, int pointer, int button)
378378
Gdx.input.setCursorCatched(false);
379379
}
380380

381-
Gdx.input.setCursorPosition((int) firstX, Gdx.graphics.getHeight() - 1 - (int) firstY);
381+
Gdx.input.setCursorPosition((int) firstX, (int) firstY);
382+
if (LWJGLUtil.getPlatform() == LWJGLUtil.PLATFORM_MACOSX) {
383+
Gdx.input.setCursorPosition((int) firstX, Gdx.graphics.getHeight() - 1 - (int) firstY);
384+
}
382385
}
383386

384387
@Override

0 commit comments

Comments
 (0)