소스 검색

only use zoom to scale in chrome

Hakim El Hattab 11 년 전
부모
커밋
ba00afbc38
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      js/reveal.js

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