diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-06-04 10:07:35 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-06-04 10:07:35 +0200 |
commit | a49f215cfb4570bcc7c38458ce4f5c73c37dfb8a (patch) | |
tree | 0c382697c2495f787c54bd58f5c24d69476c35aa /test | |
parent | f6800af5b9013589e305cccf5cdcfe91a3981a06 (diff) | |
download | gdx-boardgame-a49f215cfb4570bcc7c38458ce4f5c73c37dfb8a.zip gdx-boardgame-a49f215cfb4570bcc7c38458ce4f5c73c37dfb8a.tar.gz |
UIScreen : fix touch
Diffstat (limited to 'test')
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/UiScreen.java | 2 |
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) |