From af9929fa253ecc1194c7b7185ea1ec76d8dc79d5 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Tue, 19 Jan 2016 13:20:14 -0500 Subject: improve image tearing when playback is too fast Former-commit-id: 49e6b48c80a9102ab2195e238c7471ad9476efdc --- www/external/angular-carousel.js | 5 +++-- 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); }); -- cgit v1.2.3