summaryrefslogtreecommitdiff
path: root/www/external
diff options
context:
space:
mode:
Diffstat (limited to 'www/external')
-rw-r--r--www/external/angular-carousel.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/www/external/angular-carousel.js b/www/external/angular-carousel.js
index 9c7f770a..e0748f1d 100644
--- a/www/external/angular-carousel.js
+++ b/www/external/angular-carousel.js
@@ -68,15 +68,17 @@ angular.module('angular-carousel')
if (attrs.hasOwnProperty('rnCarouselPauseOnHover') && attrs.rnCarouselPauseOnHover !== 'false'){
// PP - added touchend to make it react to touch devices
element.on('touchend', toggleAutoPlay);
- element.on('mouseenter', stopAutoPlay);
- element.on('mouseleave', restartTimer);
+ element.on('click', toggleAutoPlay); // PP for desktop
+ //element.on('mouseenter', stopAutoPlay);
+ //element.on('mouseleave', restartTimer);
}
scope.$on('$destroy', function(){
stopAutoPlay();
- element.off('mouseenter', stopAutoPlay);
- element.off('mouseleave', restartTimer);
+ //element.off('mouseenter', stopAutoPlay);
+ //element.off('mouseleave', restartTimer);
element.off('touchend', toggleAutoPlay); // PP - remove touchend too
+ element.off('click', toggleAutoPlay); // PP - remove mouse click for desktop
});
}
};