From 950d697a70161abc30d7499b2fc85ec55c8c9129 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 9 Oct 2014 10:18:36 -0600 Subject: [PATCH] style(slideBox): lower the speed a little bit --- js/angular/controller/slideBoxController.js | 2 +- test/html/slideBox.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/angular/controller/slideBoxController.js b/js/angular/controller/slideBoxController.js index d5dad42fb9..ec3fac5ef6 100644 --- a/js/angular/controller/slideBoxController.js +++ b/js/angular/controller/slideBoxController.js @@ -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); diff --git a/test/html/slideBox.html b/test/html/slideBox.html index ac0b92594a..784e8d661e 100644 --- a/test/html/slideBox.html +++ b/test/html/slideBox.html @@ -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); }