Skip to content

Commit

Permalink
Fixed small typo in detection of full screen icon click in Portrait m…
Browse files Browse the repository at this point in the history
…ode. Was using y instead of x.
  • Loading branch information
lanceewing committed Mar 28, 2024
1 parent 5f2e3b8 commit 7db97b4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ public boolean touchUp(int screenX, int screenY, int pointer, int button) {
} else if (touchXY.x > (viewportManager.getWidth() - 126)) {
backArrowClicked = true;
} else {
int midWidth = (int) (viewportManager.getWidth() - viewportManager.getWidth() / 2);
if ((touchXY.x > (midWidth - 63)) && (touchXY.y < (midWidth + 63))) {
int midWidth = (int) (viewportManager.getWidth() - (viewportManager.getWidth() / 2));
if ((touchXY.x > (midWidth - 63)) && (touchXY.x < (midWidth + 63))) {
fullScreenClicked = true;
}
}
Expand Down

0 comments on commit 7db97b4

Please sign in to comment.