From 60457d21b437b66f6bab41ed0ae99391b3946376 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 25 Mar 2015 13:57:00 +0100 Subject: [PATCH] alt+zoom only works on slide content #1151 --- plugin/zoom-js/zoom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/zoom-js/zoom.js b/plugin/zoom-js/zoom.js index da2c10ac..95093e0e 100644 --- a/plugin/zoom-js/zoom.js +++ b/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;