Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node Tap handler breaks after animating #249

Closed
OskarGroth opened this issue Dec 8, 2017 · 2 comments
Closed

Node Tap handler breaks after animating #249

OskarGroth opened this issue Dec 8, 2017 · 2 comments
Assignees
Milestone

Comments

@OskarGroth
Copy link

OskarGroth commented Dec 8, 2017

I have a Node set up like this using Macaw on iOS:

let bar = Shape(
    form: Rect(x: Double(x), y: Double(y), w: Double(width), h: Double(height)),  
    fill: point.color.macawColor
)

To which I add a tap event handler:

bar.onTap { tapEvent in
    print("Tap")
    bar.fillVar.animation(to: UIColor.red.macawColor, during: 1, delay: 0).autoreversed().play()
}

Expected:
All taps prints "Tap" and animates the bar.

What happened:
The first tap get registered, prints "Tap" and triggers an animation.
However, consecutive taps to the same node are never registered.

If I remove the animation, consecutive taps will print "Tap" just fine.

barss

@ystrot ystrot self-assigned this Dec 8, 2017
@ystrot ystrot added this to the 0.9.2 milestone Dec 8, 2017
@ystrot
Copy link
Member

ystrot commented Dec 8, 2017

Thanks for reporting! We reproduced this issue and I think it will be fixed soon.

@ystrot ystrot closed this as completed in 9c7ed8e Dec 19, 2017
@ystrot
Copy link
Member

ystrot commented Dec 19, 2017

Fix of this issue available in the master branch and will be part of the 0.9.2 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants