OSDN Git Service

TouchDown is now caching the handled state of the event, before the
authorkjetil861@gmail.com <kjetil861@gmail.com@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Wed, 11 Jul 2012 21:57:42 +0000 (21:57 +0000)
committerkjetil861@gmail.com <kjetil861@gmail.com@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Wed, 11 Jul 2012 21:57:42 +0000 (21:57 +0000)
event gets freed.

gdx/src/com/badlogic/gdx/scenes/scene2d/Stage.java

index 98ef69b..795865f 100644 (file)
@@ -223,8 +223,9 @@ public class Stage extends InputAdapter implements Disposable {
                if (target == null) target = root;\r
 \r
                target.fire(event);\r
+               boolean handled = event.isHandled();\r
                Pools.free(event);\r
-               return event.isHandled();\r
+               return handled;\r
        }\r
 \r
        /** Applies a touch moved event to the stage and returns true if an actor in the scene {@link Event#handle() handled} the event.\r