summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-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)