Skip to content

Commit 05214c7

Browse files
committed
vswipe criteria
1 parent 43cdf93 commit 05214c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/jquery.swipebox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@
389389

390390

391391
if ( vSwipe ) {
392-
if ( slider.css( 'opacity' ) <= 0.5 && Math.abs(vDistance) > Math.abs(vDistanceLast)) {
392+
if ( Math.abs( vDistance ) >= 2*vSwipMinDistance && 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,

0 commit comments

Comments
 (0)