From 22f74ea24070d2c34808b0fcecff1fed3089e2f7 Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Wed, 1 May 2013 14:33:45 -0700 Subject: Removing Modernizr.touch check. Not sufficient for devices that are touch and mouse enabled --- js/slide-deck.js | 9 ++++++--- 1 file 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) { // Note: this needs to come after addEventListeners_(), which adds a // 'keydown' listener that this controller relies on. - // Also, no need to set this up if we're on mobile. - if (!Modernizr.touch) { + + // Modernizr.touch isn't a sufficient check for devices that support both + // touch and mouse. Create the controller in all cases. + // // Also, no need to set this up if we're on mobile. + // if (!Modernizr.touch) { this.controller = new SlideController(this); if (this.controller.isPopup) { document.body.classList.add('popup'); } - } + //} }; /** -- cgit v1.2.3