File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 290290 vDistance = null ,
291291 vSwipe = false ,
292292 hSwipe = false ,
293- hSwipMinDistance = 10 ,
293+ hSwipMinDistance = 50 ,
294294 vSwipMinDistance = 50 ,
295295 startCoords = { } ,
296296 endCoords = { } ,
405405
406406 vSwipe = false ;
407407 return ;
408- } else if ( hDistance >= hSwipMinDistance ) {
409-
410- // swipeLeft
411- $this . getPrev ( ) ;
412-
413- } else if ( hDistance <= - hSwipMinDistance ) {
414-
415- // swipeRight
416- $this . getNext ( ) ;
417-
408+ } else if ( hSwipe ) {
409+ if ( hDistance >= hSwipMinDistance ) {
410+ // swipeLeft
411+ $this . getPrev ( ) ;
412+ } else if ( hDistance <= - hSwipMinDistance ) {
413+ // swipeRight
414+ $this . getNext ( ) ;
415+ }
416+ hSwipe = false ;
418417 } else {
419418 // tap
420419 if ( ! bars . hasClass ( 'visible-bars' ) ) {
You can’t perform that action at this time.
0 commit comments