summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2019-12-18 23:20:27 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2019-12-18 23:20:27 +0100
commit059f93fd23c46dd58a9a6e92491c108eec05e26c (patch)
tree727eff1cafab7a8a48ddeed09ea571dfe7996330
parentda09ec01fbd66cf9ba87066053a3337fa9da321d (diff)
downloadgdx-boardgame-059f93fd23c46dd58a9a6e92491c108eec05e26c.zip
gdx-boardgame-059f93fd23c46dd58a9a6e92491c108eec05e26c.tar.gz
Scrollable : fix child touch()
-rw-r--r--core/src/ch/asynk/gdx/boardgame/ui/Scrollable.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/ui/Scrollable.java b/core/src/ch/asynk/gdx/boardgame/ui/Scrollable.java
index 8484e0e..842adc0 100644
--- a/core/src/ch/asynk/gdx/boardgame/ui/Scrollable.java
+++ b/core/src/ch/asynk/gdx/boardgame/ui/Scrollable.java
@@ -44,7 +44,10 @@ public class Scrollable extends Element
@Override public boolean touch(float x, float y)
{
- return clip.contains(x, y);
+ if (clip.contains(x, y)) {
+ return child.touch(x, y);
+ }
+ return false;
}
@Override public boolean drag(float x, float y, int dx, int dy)