style(slideBox): lower the speed a little bit

This commit is contained in:
Andrew
2014-10-09 10:18:36 -06:00
parent 7b5b73fd06
commit 950d697a70
2 changed files with 2 additions and 2 deletions

View File

@@ -208,7 +208,7 @@ function(scope, element, $$ionicAttachDrag, $interval) {
// Select a new slide if it's avaiable
if (self.isInRange(nextIndex)) {
var transitionDuration = Math.min(
slidesParent.prop('offsetWidth') / (3 * velocity),
slidesParent.prop('offsetWidth') / (velocity),
SLIDE_TRANSITION_DURATION
);
self.select(nextIndex, transitionDuration);

View File

@@ -94,7 +94,7 @@
.controller('SlideCtrl', function($scope, $timeout) {
$scope.items = [];
for (var i = 0; i < 1000; i++) {
for (var i = 0; i < 10; i++) {
$scope.items.push(i);
}