File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 389389
390390
391391 if ( vSwipe ) {
392- if ( slider . css ( 'opacity' ) <= 0.5 ) {
392+ if ( slider . css ( 'opacity' ) <= 0.5 && Math . abs ( vDistance ) > Math . abs ( vDistanceLast ) ) {
393393 var vOffset = vDistance > 0 ? slider . height ( ) : - slider . height ( ) ;
394394 slider . animate ( { top : vOffset + 'px' , 'opacity' : 0 } ,
395395 300 ,
403403 vSwipe = false ;
404404 return ;
405405 } else if ( hSwipe ) {
406- if ( hDistance >= hSwipMinDistance ) {
406+ if ( hDistance >= hSwipMinDistance && hDistance >= hDistanceLast ) {
407407 // swipeLeft
408408 $this . getPrev ( ) ;
409- } else if ( hDistance <= - hSwipMinDistance ) {
409+ } else if ( hDistance <= - hSwipMinDistance && hDistance <= hDistanceLast ) {
410410 // swipeRight
411411 $this . getNext ( ) ;
412412 }
You can’t perform that action at this time.
0 commit comments