diff options
-rw-r--r-- | js/slide-deck.js | 9 |
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 | /** |