소스 검색

alt+zoom only works on slide content #1151

Hakim El Hattab 10 년 전
부모
커밋
60457d21b4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plugin/zoom-js/zoom.js

+ 1 - 1
plugin/zoom-js/zoom.js

@@ -2,7 +2,7 @@
 (function(){
 	var isEnabled = true;
 
-	document.querySelector( '.reveal' ).addEventListener( 'mousedown', function( event ) {
+	document.querySelector( '.reveal .slides' ).addEventListener( 'mousedown', function( event ) {
 		var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : 'alt' ) + 'Key';
 
 		var zoomPadding = 20;