Skip to content

Commit 5c0a8c4

Browse files
author
hoanguyen
committed
🎉 🚀 release: v2.1.21
1 parent d683e35 commit 5c0a8c4

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Vue Concise Carousel is SSR and CSR friendly</title>
7-
<script type="module" crossorigin src="/assets/index.ecfcf61f.js"></script>
7+
<script type="module" crossorigin src="/assets/index.6be3af40.js"></script>
88
<link rel="modulepreload" href="/assets/vendor.be2f6b78.js">
99
<link rel="stylesheet" href="/assets/index.38e53d8b.css">
1010
</head>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jambonn/vue-concise-carousel",
3-
"version": "2.1.20",
3+
"version": "2.1.21",
44
"description": "Vue Concise Carousel is SSR and CSR friendly",
55
"keywords": [
66
"vue",

src/Carousel.vue

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,8 @@ export default {
10001000
if ((isTouch && props.touchDrag) || props.mouseDrag) {
10011001
vueCarouselWrapper.value.addEventListener(
10021002
isTouch ? 'touchstart' : 'mousedown',
1003-
onStart
1003+
onStart,
1004+
{ passive: true }
10041005
);
10051006
}
10061007
@@ -1011,14 +1012,12 @@ export default {
10111012
transitionstart.value = getTransitionStart();
10121013
vueCarouselInner.value.addEventListener(
10131014
transitionstart.value,
1014-
handleTransitionStart,
1015-
true
1015+
handleTransitionStart
10161016
);
10171017
transitionend.value = getTransitionEnd();
10181018
vueCarouselInner.value.addEventListener(
10191019
transitionend.value,
1020-
handleTransitionEnd,
1021-
true
1020+
handleTransitionEnd
10221021
);
10231022
10241023
ctx.emit('mounted');
@@ -1050,17 +1049,16 @@ export default {
10501049
window.removeEventListener('resize', getBrowserWidth);
10511050
vueCarouselInner.value.removeEventListener(
10521051
transitionstart.value,
1053-
handleTransitionStart,
1054-
true
1052+
handleTransitionStart
10551053
);
10561054
vueCarouselInner.value.removeEventListener(
10571055
transitionend.value,
1058-
handleTransitionEnd,
1059-
true
1056+
handleTransitionEnd
10601057
);
10611058
vueCarouselWrapper.value.removeEventListener(
10621059
isTouch ? 'touchstart' : 'mousedown',
1063-
onStart
1060+
onStart,
1061+
true
10641062
);
10651063
});
10661064

src/Slide.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ export default {
5858
);
5959
vueCarouselSlide.value.addEventListener(
6060
carousel.isTouch ? 'touchend' : 'mouseup',
61-
onTouchEnd
61+
onTouchEnd,
62+
true
6263
);
6364
});
6465
});
@@ -68,7 +69,8 @@ export default {
6869
);
6970
vueCarouselSlide.value.removeEventListener(
7071
carousel.isTouch ? 'touchend' : 'mouseup',
71-
onTouchEnd
72+
onTouchEnd,
73+
true
7274
);
7375
});
7476

0 commit comments

Comments
 (0)