chore(slideBox): speed up velocity a bit

This commit is contained in:
Andrew
2014-11-18 13:51:24 -07:00
parent b7b95c3a65
commit f2fbae5f3e

View File

@@ -236,7 +236,7 @@ function(scope, element, $$ionicAttachDrag, $interval, $rootScope, $timeout) {
if (self.isInRange(nextIndex)) {
var distanceRemaining = (1 - Math.abs(percent)) * slidesParent.prop('offsetWidth');
var transitionDuration = Math.min(
distanceRemaining / velocity,
distanceRemaining / velocity * 1.25,
SLIDE_TRANSITION_DURATION
);
self.select(nextIndex, transitionDuration);