diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2013-02-13 14:35:28 -0800 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2013-02-13 14:35:28 -0800 |
commit | 2d0237538c97df65448e5e08b015a87ee3b1259a (patch) | |
tree | 2008569331084a71e887e5aa76ef37b896163957 | |
parent | 7ee4e0ba66f032dba38261d0ed849bc88ce36baf (diff) | |
parent | 45825b61b7ac336dd57dd21380f1f5128dbe7609 (diff) | |
download | fosdem-2018-presentation-2d0237538c97df65448e5e08b015a87ee3b1259a.tar fosdem-2018-presentation-2d0237538c97df65448e5e08b015a87ee3b1259a.tar.gz |
Merge pull request #337 from jjallaire/ontouchstart-nullcheck
check window.ontouchstart != null (required for qtwebkit)
-rw-r--r-- | js/reveal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index fc5164d..5ed71c1 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -439,7 +439,7 @@ var Reveal = (function(){ } if ( config.controls && dom.controls ) { - var actionEvent = 'ontouchstart' in window ? 'touchstart' : 'click'; + var actionEvent = 'ontouchstart' in window && window.ontouchstart != null ? 'touchstart' : 'click'; dom.controlsLeft.forEach( function( el ) { el.removeEventListener( actionEvent, onNavigateLeftClicked, false ); } ); dom.controlsRight.forEach( function( el ) { el.removeEventListener( actionEvent, onNavigateRightClicked, false ); } ); dom.controlsUp.forEach( function( el ) { el.removeEventListener( actionEvent, onNavigateUpClicked, false ); } ); |