From: kjetil861@gmail.com Date: Wed, 11 Jul 2012 21:57:42 +0000 (+0000) Subject: TouchDown is now caching the handled state of the event, before the X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9f2d678891ad4062ae992d5898e28ea7568690de;p=mikumikustudio%2Flibgdx-mikumikustudio.git TouchDown is now caching the handled state of the event, before the event gets freed. --- diff --git a/gdx/src/com/badlogic/gdx/scenes/scene2d/Stage.java b/gdx/src/com/badlogic/gdx/scenes/scene2d/Stage.java index 98ef69bef..795865f44 100644 --- a/gdx/src/com/badlogic/gdx/scenes/scene2d/Stage.java +++ b/gdx/src/com/badlogic/gdx/scenes/scene2d/Stage.java @@ -223,8 +223,9 @@ public class Stage extends InputAdapter implements Disposable { if (target == null) target = root; target.fire(event); + boolean handled = event.isHandled(); Pools.free(event); - return event.isHandled(); + return handled; } /** Applies a touch moved event to the stage and returns true if an actor in the scene {@link Event#handle() handled} the event.