diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2017-05-18 14:11:48 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2017-05-18 14:11:48 +0200 |
commit | 6dde00fb2e3cee979d6b2fafb1c0adc1443d6c14 (patch) | |
tree | 285f4929ce46d69f3e5e9182e55311dd3d41683c /js | |
parent | fb1b8a2790a5984c7e47539c2012030633d2b3e7 (diff) | |
download | fosdem-2018-presentation-6dde00fb2e3cee979d6b2fafb1c0adc1443d6c14.tar fosdem-2018-presentation-6dde00fb2e3cee979d6b2fafb1c0adc1443d6c14.tar.gz |
improve controls on touch devices
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 7 |
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 ); |