diff --git a/js/reveal.js b/js/reveal.js index ad332a32..11d6cda3 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3278,7 +3278,7 @@ // If the input resulted in a triggered action we should prevent // the browsers default behavior if( triggered ) { - event.preventDefault(); + event.preventDefault && event.preventDefault(); } // ESC or O key else if ( ( event.keyCode === 27 || event.keyCode === 79 ) && features.transforms3d ) { @@ -3289,7 +3289,7 @@ toggleOverview(); } - event.preventDefault(); + event.preventDefault && event.preventDefault(); } // If auto-sliding is enabled we need to cue up