diff options
author | Eric Bidelman | 2012-04-19 16:07:08 -0700 |
---|---|---|
committer | Eric Bidelman | 2012-04-19 16:07:08 -0700 |
commit | 52148e7111991dfeebf2d5ce7d55c507c28e818d (patch) | |
tree | aec81f77a4c18f509b2ad073556b745b4defa8ab /js | |
parent | f2e3b76f70646de4ec70e34230f483bf9ef921fb (diff) | |
download | io-slides-remote-52148e7111991dfeebf2d5ce7d55c507c28e818d.tar.gz |
MObile updates
Diffstat (limited to 'js')
-rw-r--r-- | js/slides.js | 6 |
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') { |