aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-05-21 10:08:23 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-05-21 10:08:23 +0200
commitba00afbc38d7c1ec71561a1d23404d27f4c9e594 (patch)
tree13d9f26717cc94cfb5c3c5ccaece0df173d6d9ac /js/reveal.js
parentdbc7c627cc112ebd17b48396273a4423b66d1f7e (diff)
downloadfosdem-2018-presentation-ba00afbc38d7c1ec71561a1d23404d27f4c9e594.tar
fosdem-2018-presentation-ba00afbc38d7c1ec71561a1d23404d27f4c9e594.tar.gz
only use zoom to scale in chrome
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 d2a28c2..f172c13 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1266,8 +1266,8 @@
scale = Math.max( scale, config.minScale );
scale = Math.min( scale, config.maxScale );
- // Prefer zooming in desktop WebKit so that content remains crisp
- if( !isMobileDevice && /webkit/i.test( navigator.userAgent ) && typeof dom.slides.style.zoom !== 'undefined' ) {
+ // Prefer zooming in desktop Chrome so that content remains crisp
+ if( !isMobileDevice && /chrome/i.test( navigator.userAgent ) && typeof dom.slides.style.zoom !== 'undefined' ) {
dom.slides.style.zoom = scale;
}
// Apply scale transform as a fallback