瀏覽代碼

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;