Skip to content

Commit a0ad72b

Browse files
committed
bug fix test
1 parent a99b97e commit a0ad72b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/jquery.swipebox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,10 @@
406406
vSwipe = false;
407407
return;
408408
} else if ( hSwipe ) {
409-
if( hDistance >= hSwipMinDistance && hDistance >= hDistanceLast) {
409+
if( hDistance >= hSwipMinDistance ) {
410410
// swipeLeft
411411
$this.getPrev();
412-
} else if ( hDistance <= -hSwipMinDistance && hDistance <= hDistanceLast) {
412+
} else if ( hDistance <= -hSwipMinDistance ) {
413413
// swipeRight
414414
$this.getNext();
415415
}

0 commit comments

Comments
 (0)