aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/slides.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/slides.js b/js/slides.js
index acdbe5b..3251982 100644
--- a/js/slides.js
+++ b/js/slides.js
@@ -314,6 +314,12 @@ SlideDeck.prototype.loadConfig_ = function(config) {
314 settings.enableTouch)) { 314 settings.enableTouch)) {
315 var self = this; 315 var self = this;
316 316
317 // Note: this prevents mobile zoom in/out but prevents iOS from doing
318 // it's crazy scroll over effect and disaligning the slides.
319 window.addEventListener('touchstart', function(e) {
320 e.preventDefault();
321 }, false);
322
317 var hammer = new Hammer(this.container); 323 var hammer = new Hammer(this.container);
318 hammer.ondragend = function(e) { 324 hammer.ondragend = function(e) {
319 if (e.direction == 'right' || e.direction == 'down') { 325 if (e.direction == 'right' || e.direction == 'down') {