[bugfix] Swipe: transitionend event bubble (#2355)

This commit is contained in:
neverland 2018-12-22 08:10:50 +08:00 committed by GitHub
parent b6790888d2
commit 71555592bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
@touchmove="onTouchMove" @touchmove="onTouchMove"
@touchend="onTouchEnd" @touchend="onTouchEnd"
@touchcancel="onTouchEnd" @touchcancel="onTouchEnd"
@transitionend="$emit('change', activeIndicator)" @transitionend.stop="$emit('change', activeIndicator)"
> >
<slot /> <slot />
</div> </div>
@ -15,6 +15,7 @@
<div <div
v-if="showIndicators && count > 1" v-if="showIndicators && count > 1"
:class="b('indicators', { vertical })" :class="b('indicators', { vertical })"
@transitionend.stop
> >
<i <i
v-for="index in count" v-for="index in count"