mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style(slideBox): lower the speed a little bit
This commit is contained in:
2
js/angular/controller/slideBoxController.js
vendored
2
js/angular/controller/slideBoxController.js
vendored
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user