summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-06-04 10:07:35 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-06-04 10:07:35 +0200
commita49f215cfb4570bcc7c38458ce4f5c73c37dfb8a (patch)
tree0c382697c2495f787c54bd58f5c24d69476c35aa /test/src
parentf6800af5b9013589e305cccf5cdcfe91a3981a06 (diff)
downloadgdx-boardgame-a49f215cfb4570bcc7c38458ce4f5c73c37dfb8a.zip
gdx-boardgame-a49f215cfb4570bcc7c38458ce4f5c73c37dfb8a.tar.gz
UIScreen : fix touch
Diffstat (limited to 'test/src')
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/UiScreen.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/src/ch/asynk/gdx/boardgame/test/UiScreen.java b/test/src/ch/asynk/gdx/boardgame/test/UiScreen.java
index 4120fac..319ffab 100644
--- a/test/src/ch/asynk/gdx/boardgame/test/UiScreen.java
+++ b/test/src/ch/asynk/gdx/boardgame/test/UiScreen.java
@@ -204,7 +204,7 @@ public class UiScreen extends AbstractScreen
{
hudTouch.set(x, y, 0);
camera.unproject(hudTouch);
- if (root.touch(hudTouch.x, hudTouch.y) == next)
+ if (down && root.touch(hudTouch.x, hudTouch.y) == next)
setState(state.next());
}
@Override protected void onDragged(int dx, int dy)