diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2016-01-19 13:20:14 -0500 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2016-01-19 13:20:14 -0500 |
| commit | af9929fa253ecc1194c7b7185ea1ec76d8dc79d5 (patch) | |
| tree | 6ff03e8fd3ac282f3bc80a0dd66a97c28f72833b | |
| parent | d6de9bb4295e2a70ad85bc9fd9ce6e6587330047 (diff) | |
improve image tearing when playback is too fast
Former-commit-id: 49e6b48c80a9102ab2195e238c7471ad9476efdc
| -rw-r--r-- | www/external/angular-carousel.js | 5 | ||||
| -rw-r--r-- | www/js/ModalCtrl.js | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/www/external/angular-carousel.js b/www/external/angular-carousel.js index 452ea227..4a853981 100644 --- a/www/external/angular-carousel.js +++ b/www/external/angular-carousel.js @@ -451,12 +451,13 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach } else { + scope.autoSlide(); // lets move the index along - PP // so playback total time is not affected - scope.carouselIndex = index; + // scope.carouselIndex = index; //console.log ("Image is still loading, not skipping slides, index at "+index); - updateBufferIndex(); + // updateBufferIndex(); //console.log ("NOT LOADED but advancing carousel to " + scope.carouselIndex); } diff --git a/www/js/ModalCtrl.js b/www/js/ModalCtrl.js index a1934359..b22a2458 100644 --- a/www/js/ModalCtrl.js +++ b/www/js/ModalCtrl.js @@ -1173,6 +1173,7 @@ $scope.togglePresets = function() // if (carouselUtils.getStop() == true) return; + $scope.mycarousel.index = parseInt($scope.ionRange.index) - 1; // console.log ("***ION RANGE CHANGED TO " + $scope.mycarousel.index); }); |
