diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2019-12-18 23:20:27 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2019-12-18 23:20:27 +0100 |
commit | 059f93fd23c46dd58a9a6e92491c108eec05e26c (patch) | |
tree | 727eff1cafab7a8a48ddeed09ea571dfe7996330 /core/src | |
parent | da09ec01fbd66cf9ba87066053a3337fa9da321d (diff) | |
download | gdx-boardgame-059f93fd23c46dd58a9a6e92491c108eec05e26c.zip gdx-boardgame-059f93fd23c46dd58a9a6e92491c108eec05e26c.tar.gz |
Scrollable : fix child touch()
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/ui/Scrollable.java | 5 |
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) |