From a49f215cfb4570bcc7c38458ce4f5c73c37dfb8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 4 Jun 2020 10:07:35 +0200 Subject: UIScreen : fix touch --- test/src/ch/asynk/gdx/boardgame/test/UiScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.1-2-g2b99