From 192dfb824ca806ee398cebdcc0a93a109b33d93a Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Fri, 11 Aug 2017 22:07:15 -0300 Subject: [PATCH] feat(carousel): Use transitionend event instead of setTimeout setTimeout for timing transitions can be iffy at best (especially when view port is obscured) This fix removes the setTimeout and replaces it with a "once" `transitionend` event --- lib/components/carousel.vue | 42 ++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/lib/components/carousel.vue b/lib/components/carousel.vue index 66397b748f2..a61e747e7ff 100755 --- a/lib/components/carousel.vue +++ b/lib/components/carousel.vue @@ -77,18 +77,16 @@