aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Bidelman2013-05-01 14:33:45 -0700
committerEric Bidelman2013-05-01 14:33:45 -0700
commit22f74ea24070d2c34808b0fcecff1fed3089e2f7 (patch)
tree772401a982ada1584edd34fac39a4972830ff866
parent07fa54cb316721ea1522f801063dd2109530a8bf (diff)
downloadio-slides-remote-22f74ea24070d2c34808b0fcecff1fed3089e2f7.tar.gz
Removing Modernizr.touch check. Not sufficient for devices that are touch and mouse enabled
-rw-r--r--js/slide-deck.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/js/slide-deck.js b/js/slide-deck.js
index caebaf3..853bed3 100644
--- a/js/slide-deck.js
+++ b/js/slide-deck.js
@@ -102,13 +102,16 @@ SlideDeck.prototype.onDomLoaded_ = function(e) {
102 102
103 // Note: this needs to come after addEventListeners_(), which adds a 103 // Note: this needs to come after addEventListeners_(), which adds a
104 // 'keydown' listener that this controller relies on. 104 // 'keydown' listener that this controller relies on.
105 // Also, no need to set this up if we're on mobile. 105
106 if (!Modernizr.touch) { 106 // Modernizr.touch isn't a sufficient check for devices that support both
107 // touch and mouse. Create the controller in all cases.
108 // // Also, no need to set this up if we're on mobile.
109 // if (!Modernizr.touch) {
107 this.controller = new SlideController(this); 110 this.controller = new SlideController(this);
108 if (this.controller.isPopup) { 111 if (this.controller.isPopup) {
109 document.body.classList.add('popup'); 112 document.body.classList.add('popup');
110 } 113 }
111 } 114 //}
112}; 115};
113 116
114/** 117/**