add zoomKey option for #700

main
Hakim El Hattab 9 years ago
parent adbf36ad47
commit e947f0f216

@ -3,7 +3,9 @@
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 });
}

Loading…
Cancel
Save