Skip to content

Commit

Permalink
feat(config): remove throttle value
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail9k committed Nov 15, 2024
1 parent 5009d4e commit 93f1480
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/Carousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export default defineComponent({

dragged.y = deltaY
dragged.x = deltaX
}, config.throttle)
})

function handleDragEnd(): void {
const direction = config.dir === 'rtl' ? -1 : 1
Expand Down
1 change: 0 additions & 1 deletion src/partials/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const DEFAULT_CONFIG: CarouselConfig = {
transition: 300,
autoplay: 0,
gap: 0,
throttle: 16,
wrapAround: false,
pauseAutoplayOnHover: false,
mouseDrag: true,
Expand Down
5 changes: 0 additions & 5 deletions src/partials/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ export const carouselProps = {
default: DEFAULT_CONFIG.wrapAround,
type: Boolean,
},
// control max drag
throttle: {
default: DEFAULT_CONFIG.throttle,
type: Number,
},
// control the gap between slides
gap: {
default: DEFAULT_CONFIG.gap,
Expand Down
1 change: 0 additions & 1 deletion src/types/carousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export interface CarouselConfig {
itemsToScroll: number
modelValue?: number
transition?: number
throttle: number
gap: number
autoplay?: number
snapAlign: SnapAlign
Expand Down

0 comments on commit 93f1480

Please sign in to comment.