mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
amend(slideBox): when changing by >=2 slides, transition correctly
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, $log, $document, $$q, $timeout, $interval, $$ionicAttac
|
||||
|
||||
var deferred = $$q.defer();
|
||||
var delta = getDelta(selectedIndex, newIndex);
|
||||
var width = slideNodes[newIndex].offsetWidth;
|
||||
var width = (slideNodes[selectedIndex] || slideNodes[newIndex] || {}).offsetWidth || 0;
|
||||
var direction;
|
||||
var translatePx;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user