summaryrefslogtreecommitdiff
path: root/www/external
diff options
context:
space:
mode:
Diffstat (limited to 'www/external')
-rw-r--r--www/external/angular-carousel.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/www/external/angular-carousel.js b/www/external/angular-carousel.js
index dc387cf5..04b91455 100644
--- a/www/external/angular-carousel.js
+++ b/www/external/angular-carousel.js
@@ -69,6 +69,7 @@ angular.module('angular-carousel')
// PP - added touchend to make it react to touch devices
if (attrs.hasOwnProperty('rnPlatform') && attrs.rnPlatform == 'unknown')
{
+ console.log ("ranPlatform is " + attrs.rnPlatform);
console.log ("Desktop, de-registering any old click");
element.off('click', toggleAutoPlay); // PP - remove mouse click for desktop
element.on('click', toggleAutoPlay); // PP for desktop
@@ -76,6 +77,7 @@ angular.module('angular-carousel')
}
else
{
+ console.log ("ranPlatform is " + attrs.rnPlatform);
console.log ("Device, de-registering any old touch");
element.off('touchend', toggleAutoPlay); // PP - remove touchend too
element.on('touchend', toggleAutoPlay);