diff options
Diffstat (limited to 'js/slides.js')
-rw-r--r-- | js/slides.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/slides.js b/js/slides.js index a28fd55..c970ddb 100644 --- a/js/slides.js +++ b/js/slides.js | |||
@@ -265,7 +265,8 @@ SlideDeck.prototype.loadConfig_ = function(config) { | |||
265 | slides.appendChild(el); | 265 | slides.appendChild(el); |
266 | } | 266 | } |
267 | 267 | ||
268 | if (!!!('enableTouch' in settings) || settings.enableTouch) { | 268 | if (Modernizr.touch && (!!!('enableTouch' in settings) || |
269 | settings.enableTouch)) { | ||
269 | var self = this; | 270 | var self = this; |
270 | 271 | ||
271 | var hammer = new Hammer(slides); | 272 | var hammer = new Hammer(slides); |