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