Skip to content

Commit 2264a7e

Browse files
committed
bugfix test
1 parent 5034082 commit 2264a7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/js/jquery.swipebox.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@
307307

308308
$( this ).addClass( 'touching' );
309309

310+
vSwipe = false;
311+
hSwipe = false;
312+
310313
endCoords = event.originalEvent.targetTouches[0];
311314
startCoords.pageX = event.originalEvent.targetTouches[0].pageX;
312315
startCoords.pageY = event.originalEvent.targetTouches[0].pageY;
@@ -401,7 +404,6 @@
401404
slider.animate( { top: 0, 'opacity': 1 }, 300 );
402405
}
403406

404-
return;
405407
} else if ( hSwipe ) {
406408
hSwipe = false;
407409
if( hDistance >= hSwipMinDistance && hDistance >= hDistanceLast) {

0 commit comments

Comments
 (0)