@@ -62,6 +62,7 @@ export class SlidesComponent implements OnInit, AfterViewInit, OnDestroy {
6262 @Input ( "footerMarginTop" ) footerMarginTop : number ;
6363 @Input ( "loop" ) loop : boolean ;
6464 @Input ( "pageIndicators" ) pageIndicators : boolean ;
65+ @Input ( "swipeSpeed" ) swipeSpeed : number ;
6566 @Input ( "class" ) cssClass : string = "" ;
6667 @Input ( ) zoomEnabled = false ;
6768 @Input ( "autoInit" ) autoInit : boolean = true ;
@@ -100,6 +101,7 @@ export class SlidesComponent implements OnInit, AfterViewInit, OnDestroy {
100101 ngOnInit ( ) {
101102 this . loop = this . loop ? this . loop : false ;
102103 this . pageIndicators = this . pageIndicators ? this . pageIndicators : false ;
104+ this . swipeSpeed = this . swipeSpeed ? this . swipeSpeed : 3 ;
103105 this . pageWidth = this . pageWidth
104106 ? this . pageWidth
105107 : platform . screen . mainScreen . widthDIPs ;
@@ -390,7 +392,7 @@ export class SlidesComponent implements OnInit, AfterViewInit, OnDestroy {
390392 // if velocityScrolling is enabled then calculate the velocitty
391393
392394 // swiping left to right.
393- if ( args . deltaX > this . pageWidth / 3 ) {
395+ if ( args . deltaX > this . pageWidth / this . swipeSpeed ) {
394396 if ( this . hasPrevious ) {
395397 this . transitioning = true ;
396398 this . showLeftSlide (
@@ -410,7 +412,7 @@ export class SlidesComponent implements OnInit, AfterViewInit, OnDestroy {
410412 return ;
411413 }
412414 // swiping right to left
413- else if ( args . deltaX < - this . pageWidth / 3 ) {
415+ else if ( args . deltaX < - this . pageWidth / this . swipeSpeed ) {
414416 if ( this . hasNext ) {
415417 this . transitioning = true ;
416418 this . showRightSlide (
0 commit comments