Skip to content

Commit

Permalink
Fixed issue where icons could be clicked on either side of game screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanceewing committed Apr 11, 2024
1 parent c12329b commit 5f3ba96
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ public boolean touchUp(int screenX, int screenY, int pointer, int button) {
}
else {
// All buttons on same side
if ((touchXY.x < 128) || (touchXY.x > (viewportManager.getWidth() - 128))) {
if (((touchXY.x < 128) && (cameraXOffset < 0)) ||
((touchXY.x > (viewportManager.getWidth() - 128)) && (cameraXOffset > 0))) {
if (touchXY.y > (screenTop - 128)) {
fullScreenClicked = true;
}
Expand Down

0 comments on commit 5f3ba96

Please sign in to comment.