From 1d13760f0ee2de7bd698585701f42054c1a46b86 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 4 Apr 2014 11:35:54 +0200 Subject: only use zoom to scale content in webkit --- js/reveal.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 04350d0..06b217b 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1111,9 +1111,8 @@ var Reveal = (function(){ scale = Math.max( scale, config.minScale ); scale = Math.min( scale, config.maxScale ); - // Prefer applying scale via zoom since Chrome blurs scaled content - // with nested transforms - if( typeof dom.slides.style.zoom !== 'undefined' && !navigator.userAgent.match( /(iphone|ipod|ipad|android)/gi ) ) { + // Prefer zooming in WebKit so that content remains crisp + if( /webkit/i.test( navigator.userAgent ) && typeof dom.slides.style.zoom !== 'undefined' ) { dom.slides.style.zoom = scale; } // Apply scale transform as a fallback -- cgit v1.2.3