From 059f93fd23c46dd58a9a6e92491c108eec05e26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 18 Dec 2019 23:20:27 +0100 Subject: Scrollable : fix child touch() --- core/src/ch/asynk/gdx/boardgame/ui/Scrollable.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.1-2-g2b99