diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-07-26 16:54:12 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-07-26 16:54:12 -0400 |
| commit | cee8c7c15a4d67af6658fdf98fa444fddf32c121 (patch) | |
| tree | 634c867acdebaef4b58d47ff053b76c961026817 /www/external | |
| parent | 83400033a3b7a91ad072a5d306355c9cd5a80d82 (diff) | |
Added slider with alarm frame tick marks and scrubbing
Diffstat (limited to 'www/external')
| -rw-r--r-- | www/external/angular-carousel.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/www/external/angular-carousel.js b/www/external/angular-carousel.js index 127aee6f..28bd401b 100644 --- a/www/external/angular-carousel.js +++ b/www/external/angular-carousel.js @@ -38,24 +38,23 @@ angular.module('angular-carousel') var toggleAutoPlay = function() { if (scope.autoSlider) { - scope.rnForceStop = true; + scope.rnForceStop = true; //PP console.log ("***RN: Stopping Play"); stopAutoPlay(); } else { - scope.rnForceStop = false; + scope.rnForceStop = false; //PP console.log ("***RN: Starting Play"); restartTimer(); } }; - scope.rnForceStop = false; + scope.rnForceStop = true; // PP scope.$watch('carouselIndex', restartTimer); if (attrs.hasOwnProperty('rnCarouselPauseOnHover') && attrs.rnCarouselPauseOnHover !== 'false'){ // PP - element.on('touchstart', toggleAutoPlay); - //element.on('click', toggleAutoPlay); + element.on('touchend', toggleAutoPlay); //element.on('mouseenter', stopAutoPlay); //element.on('mouseleave', restartTimer); } @@ -488,7 +487,7 @@ angular.module('angular-carousel').run(['$templateCache', function($templateCach $interval.cancel(scope.autoSlider); scope.autoSlider = null; } - if (!scope.rnForceStop) + if (!scope.rnForceStop) //PP { scope.autoSlider = $interval(function() { if (!locked && !pressed ) { |
