aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/reveal.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js
index ad332a3..11d6cda 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