Prechádzať zdrojové kódy

only use zoom to scale content in webkit

Hakim El Hattab 11 rokov pred
rodič
commit
1d13760f0e
2 zmenil súbory, kde vykonal 3 pridanie a 4 odobranie
  1. 2 3
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 2 - 3
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

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 1 - 1
js/reveal.min.js


Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov