File tree Expand file tree Collapse file tree 4 files changed +1
-8
lines changed
Expand file tree Collapse file tree 4 files changed +1
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments