Skip to content

Commit eb7af9a

Browse files
committed
🎉 🚀 release: v2.1.24
1 parent 8de871f commit eb7af9a

File tree

5 files changed

+10
-25
lines changed

5 files changed

+10
-25
lines changed

dist/assets/index.f82b14ff.js renamed to dist/assets/index.5b6ef4cd.js

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.f82b14ff.js"></script>
7+
<script type="module" crossorigin src="/assets/index.5b6ef4cd.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.23",
3+
"version": "2.1.24",
44
"description": "Vue Concise Carousel is SSR and CSR friendly",
55
"keywords": [
66
"vue",

src/Carousel.vue

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ import {
7272
watch,
7373
} from 'vue';
7474
import debounce from './utils/debounce';
75-
import delay from './utils/delay';
7675
import Navigation from './Navigation.vue';
7776
import Pagination from './Pagination.vue';
7877
@@ -532,7 +531,8 @@ export default {
532531
533532
const pauseAutoplay = () => {
534533
if (autoplayInterval.value) {
535-
autoplayInterval.value = clearInterval(autoplayInterval.value);
534+
clearInterval(autoplayInterval.value);
535+
autoplayInterval.value = null;
536536
}
537537
};
538538
const startAutoplay = () => {
@@ -717,18 +717,15 @@ export default {
717717
* @param {Number} page The value of the new page number
718718
* @param {string|undefined} advanceType An optional value describing the type of page advance
719719
*/
720-
const goToPage = async (page, advanceType) => {
720+
const goToPage = (page, advanceType) => {
721721
if (page >= 0 && page <= pageCount.value) {
722722
if (hasVueCarouselSlideAdjust.value && !isFinishSlideAdjust.value) {
723-
if (page === navigateTo.value) {
724-
currentPage.value = navigateTo.value;
725-
return;
726-
}
727-
728723
dragging.value = true;
729724
handleVueCarouselSlideAdjust();
730-
await delay(refreshRate.value);
731-
dragging.value = false;
725+
// clear dragging after refresh rate
726+
setTimeout(() => {
727+
dragging.value = false;
728+
}, refreshRate.value);
732729
}
733730
734731
offset.value = props.scrollPerPage

src/utils/delay.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)