paytonshaltis / freighter

🚂 Freighter is a highly-customizable HTML carousel library featuring a number of dynamic properties affecting carousel items and transitions. Most prominently, it gives complete control over the resizing method (for responsive layouts) as well as the wrapping method (for content display).
https://paytonshaltis.github.io/freighter
MIT License
1 stars 0 forks source link

Transitionend is detected by child transitions. #10

Closed paytonshaltis closed 1 year ago

paytonshaltis commented 1 year ago

Need to change the transitionend event listener on the carouselItemContainer in order to ensure that the target of the transition is the container itself and not one of its children.