aurelia / animator-css

An implementation of the abstract Animator interface from templating which enables css-based animations.
MIT License
45 stars 25 forks source link

fix(events): start and end events capture bubbles #61

Closed Ullfis closed 7 years ago

Ullfis commented 7 years ago

The animator is capturing animation start and end events from other elements who bubble this. This will in some situations make the animator start/end before it should.

This PR compare the event target and element. If events bubble from other elements, the start and end listeners will not proceed.

CLAassistant commented 7 years ago

CLA assistant check
All committers have signed the CLA.

zewa666 commented 7 years ago

thanks for the contribution