Skip to content

Commit dff1a38

Browse files
author
hoanguyen
committed
🎉 🚀 release: v2.1.18
1 parent 9641bca commit dff1a38

File tree

6 files changed

+12
-27
lines changed

6 files changed

+12
-27
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.8599b50a.js"></script>
7+
<script type="module" crossorigin src="/assets/index.d79d1ea1.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.17",
3+
"version": "2.1.18",
44
"description": "Vue Concise Carousel is SSR and CSR friendly",
55
"keywords": [
66
"vue",

src/Carousel.vue

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -986,34 +986,21 @@ export default {
986986
startAutoplay();
987987
988988
if (props.autoplayHoverPause) {
989-
vueConciseCarousel.value.addEventListener(
990-
'mouseenter',
991-
pauseAutoplay,
992-
true
993-
);
994-
vueConciseCarousel.value.addEventListener(
995-
'mouseleave',
996-
startAutoplay,
997-
true
998-
);
989+
vueConciseCarousel.value.addEventListener('mouseenter', pauseAutoplay);
990+
vueConciseCarousel.value.addEventListener('mouseleave', startAutoplay);
999991
}
1000992
1001993
if (props.keyboard) {
1002-
window.addEventListener('keydown', keyboardEventHandler, true);
994+
window.addEventListener('keydown', keyboardEventHandler);
1003995
}
1004996
1005-
window.addEventListener(
1006-
'resize',
1007-
debounce(onResize, refreshRate.value),
1008-
true
1009-
);
997+
window.addEventListener('resize', debounce(onResize, refreshRate.value));
1010998
1011999
// setup the start event only if touch device or mousedrag activated
10121000
if ((isTouch && props.touchDrag) || props.mouseDrag) {
10131001
vueCarouselWrapper.value.addEventListener(
10141002
isTouch ? 'touchstart' : 'mousedown',
1015-
onStart,
1016-
true
1003+
onStart
10171004
);
10181005
}
10191006
@@ -1024,14 +1011,12 @@ export default {
10241011
transitionstart.value = getTransitionStart();
10251012
vueCarouselInner.value.addEventListener(
10261013
transitionstart.value,
1027-
handleTransitionStart,
1028-
true
1014+
handleTransitionStart
10291015
);
10301016
transitionend.value = getTransitionEnd();
10311017
vueCarouselInner.value.addEventListener(
10321018
transitionend.value,
1033-
handleTransitionEnd,
1034-
true
1019+
handleTransitionEnd
10351020
);
10361021
10371022
ctx.emit('mounted');

src/Slide.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ export default {
5858
);
5959
vueCarouselSlide.value.addEventListener(
6060
carousel.isTouch ? 'touchend' : 'mouseup',
61-
onTouchEnd,
62-
true
61+
onTouchEnd
6362
);
6463
});
6564
});

vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default ({ command, mode }) => {
99
const config = {
1010
server: {
1111
port: 8080,
12+
host: '0.0.0.0',
1213
},
1314
plugins: [vue()],
1415
};

0 commit comments

Comments
 (0)