OSDN Git Service

Revert change to short circuit WidgetGroup hit detection.
authorNathanSweet <nathan.sweet@gmail.com>
Mon, 7 Oct 2013 14:52:20 +0000 (16:52 +0200)
committerNathanSweet <nathan.sweet@gmail.com>
Mon, 7 Oct 2013 14:52:20 +0000 (16:52 +0200)
f92f71656f306a60c68790f4b8f5e39432d2c59d

gdx/src/com/badlogic/gdx/scenes/scene2d/ui/WidgetGroup.java

index 79e02b9..b4390ca 100644 (file)
@@ -149,10 +149,4 @@ public class WidgetGroup extends Group implements Layout {
                validate();\r
                super.draw(batch, parentAlpha);\r
        }\r
-\r
-       public Actor hit (float x, float y, boolean touchable) {\r
-               if (touchable && getTouchable() == Touchable.disabled) return null;\r
-               if (x < 0 || x >= getWidth() || y < 0 || y >= getHeight()) return null;\r
-               return super.hit(x, y, touchable);\r
-       }\r
 }\r