vue3-carousel
Advanced tools
Comparing version 0.1.31 to 0.1.32
/** | ||
* Vue 3 Carousel 0.1.31 | ||
* Vue 3 Carousel 0.1.32 | ||
* (c) 2021 | ||
@@ -288,3 +288,5 @@ * @license MIT | ||
if (shouldShiftSlides) { | ||
const buffer = Math.round((slidesCount.value - config.itemsToShow) / 2); | ||
const buffer = config.itemsToShow !== 1 | ||
? Math.round((slidesCount.value - config.itemsToShow) / 2) | ||
: 0; | ||
let shifts = buffer - currentSlideIndex.value; | ||
@@ -291,0 +293,0 @@ if (config.snapAlign === 'end') { |
/** | ||
* Vue 3 Carousel 0.1.31 | ||
* Vue 3 Carousel 0.1.32 | ||
* (c) 2021 | ||
@@ -10,3 +10,3 @@ * @license MIT | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.VueCarousel = {}, global.Vue)); | ||
}(this, (function (exports, vue) { 'use strict'; | ||
})(this, (function (exports, vue) { 'use strict'; | ||
@@ -293,3 +293,5 @@ const defaultConfigs = { | ||
if (shouldShiftSlides) { | ||
const buffer = Math.round((slidesCount.value - config.itemsToShow) / 2); | ||
const buffer = config.itemsToShow !== 1 | ||
? Math.round((slidesCount.value - config.itemsToShow) / 2) | ||
: 0; | ||
let shifts = buffer - currentSlideIndex.value; | ||
@@ -663,2 +665,2 @@ if (config.snapAlign === 'end') { | ||
}))); | ||
})); |
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { | ||
[key: string]: any; | ||
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}> & ({} | {}), {}>; | ||
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>; | ||
export default _default; |
{ | ||
"name": "vue3-carousel", | ||
"version": "0.1.31", | ||
"version": "0.1.32", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "rollup -c", |
Sorry, the diff of this file is not supported yet
64228
1693