aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-05-18 14:11:48 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2017-05-18 14:11:48 +0200
commit6dde00fb2e3cee979d6b2fafb1c0adc1443d6c14 (patch)
tree285f4929ce46d69f3e5e9182e55311dd3d41683c /js
parentfb1b8a2790a5984c7e47539c2012030633d2b3e7 (diff)
downloadfosdem-2018-presentation-6dde00fb2e3cee979d6b2fafb1c0adc1443d6c14.tar
fosdem-2018-presentation-6dde00fb2e3cee979d6b2fafb1c0adc1443d6c14.tar.gz
improve controls on touch devices
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index bf2f6a0..d0178d4 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -523,6 +523,13 @@
// Prevent transitions while we're loading
dom.slides.classList.add( 'no-transition' );
+ if( isMobileDevice ) {
+ dom.wrapper.classList.add( 'no-hover' );
+ }
+ else {
+ dom.wrapper.classList.remove( 'no-hover' );
+ }
+
// Background element
dom.background = createSingletonNode( dom.wrapper, 'div', 'backgrounds', null );