@@ 533-541 (lines=9) @@ | ||
530 | return; |
|
531 | } |
|
532 | ||
533 | if (!scrolling || Number(new Date()) - startT > 500) { |
|
534 | e.preventDefault(); |
|
535 | if (!fade && slider.transitions) { |
|
536 | if (!slider.vars.animationLoop) { |
|
537 | dx = accDx / ((slider.currentSlide === 0 && accDx < 0 || slider.currentSlide === slider.last && accDx > 0) ? (Math.abs(accDx) / cwidth + 2) : 1); |
|
538 | } |
|
539 | slider.setProps(offset + dx, "setTouch"); |
|
540 | } |
|
541 | } |
|
542 | } |
|
543 | ||
544 | function onMSGestureEnd(e) { |
|
@@ 448-456 (lines=9) @@ | ||
445 | ||
446 | var fxms = 500; |
|
447 | ||
448 | if ( ! scrolling || Number( new Date() ) - startT > fxms ) { |
|
449 | e.preventDefault(); |
|
450 | if (!fade && slider.transitions) { |
|
451 | if (!slider.vars.animationLoop) { |
|
452 | dx = dx/((slider.currentSlide === 0 && dx < 0 || slider.currentSlide === slider.last && dx > 0) ? (Math.abs(dx)/cwidth+2) : 1); |
|
453 | } |
|
454 | slider.setProps(offset + dx, "setTouch"); |
|
455 | } |
|
456 | } |
|
457 | }; |
|
458 | ||
459 | onTouchEnd = function(e) { |