Skip to content
Snippets Groups Projects
Commit d5978e6a authored by Frantisek Simon's avatar Frantisek Simon
Browse files

#335 onDropped callback is called before move back animation starts.

parent b8ad20cf
Branches
Tags
No related merge requests found
......@@ -88,15 +88,17 @@ public class DragActorListener extends InputListener {
public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
if (pointer == 0 && button == 0) {
super.touchUp(event, x, y, pointer, button);
if (dragListener != null) {
dragListener.onDropped(actor.getX(), actor.getY());
}
Log.debug(this.getClass(), "Actor x: " + actor.getX() + ", Actor y: " + actor.getY());
if (bounceBack) {
moveBack();
}
if (dragListener != null) {
dragListener.onDropped(actor.getX(), actor.getY());
}
event.stop();
Log.debug(this.getClass(), "Actor x: " + actor.getX() + ", Actor y: " + actor.getY());
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment