Skip to content

Commit 93f1480

Browse files
committed
feat(config): remove throttle value
1 parent 5009d4e commit 93f1480

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

src/components/Carousel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export default defineComponent({
214214

215215
dragged.y = deltaY
216216
dragged.x = deltaX
217-
}, config.throttle)
217+
})
218218

219219
function handleDragEnd(): void {
220220
const direction = config.dir === 'rtl' ? -1 : 1

src/partials/defaults.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export const DEFAULT_CONFIG: CarouselConfig = {
2222
transition: 300,
2323
autoplay: 0,
2424
gap: 0,
25-
throttle: 16,
2625
wrapAround: false,
2726
pauseAutoplayOnHover: false,
2827
mouseDrag: true,

src/partials/props.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ export const carouselProps = {
2121
default: DEFAULT_CONFIG.wrapAround,
2222
type: Boolean,
2323
},
24-
// control max drag
25-
throttle: {
26-
default: DEFAULT_CONFIG.throttle,
27-
type: Number,
28-
},
2924
// control the gap between slides
3025
gap: {
3126
default: DEFAULT_CONFIG.gap,

src/types/carousel.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export interface CarouselConfig {
1919
itemsToScroll: number
2020
modelValue?: number
2121
transition?: number
22-
throttle: number
2322
gap: number
2423
autoplay?: number
2524
snapAlign: SnapAlign

0 commit comments

Comments
 (0)