viromedia / virocore

ViroCore cross-platform AR/VR renderer
MIT License
370 stars 108 forks source link

onAnimationFinish callback always returning false for canceled parameter #284

Open nuudles opened 5 years ago

nuudles commented 5 years ago

Environment

Please provide the following information about your environment:

  1. OS: Mac
  2. Version: 1.14.0
  3. Device(s): Galaxy S9

Description

Animation.Listener onAnimationFinish callback always called with canceled as false.

Reproducible Demo

  1. Get an animation using getAnimation(key)
  2. Set looping to false using animation.setLoop(false)
  3. Set a listener to the animation.
  4. Start the animation using animation.play()
  5. Stop the animation at a later time using animaton.stop()
  6. Observe the onAnimationFinish callback with the canceled parameter returning false even though we explicitly canceled it.