From 6dde00fb2e3cee979d6b2fafb1c0adc1443d6c14 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 18 May 2017 14:11:48 +0200 Subject: improve controls on touch devices --- js/reveal.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js') 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 ); -- cgit v1.2.3