assets/reveal.js/plugin/zoom-js/zoom.js in slippery-0.3.0 vs assets/reveal.js/plugin/zoom-js/zoom.js in slippery-0.4.0

- old
+ new

@@ -1,10 +1,12 @@ // Custom reveal.js integration (function(){ var isEnabled = true; document.querySelector( '.reveal' ).addEventListener( 'mousedown', function( event ) { - if( event.altKey && isEnabled ) { + var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : 'alt' ) + 'Key'; + + if( event[ modifier ] && isEnabled ) { event.preventDefault(); zoom.to({ element: event.target, pan: false }); } } );