zoom.js works on main wrapper element
This commit is contained in:
parent
76eea30083
commit
b04489b129
@ -1,6 +1,9 @@
|
||||
// Custom reveal.js integration
|
||||
(function(){
|
||||
document.querySelector( '.reveal .slides' ).addEventListener( 'mousedown', function( event ) {
|
||||
var revealElement = document.querySelector( '.reveal' );
|
||||
if( revealElement ) {
|
||||
|
||||
revealElement.addEventListener( 'mousedown', function( event ) {
|
||||
var defaultModifier = /Linux/.test( window.navigator.platform ) ? 'ctrl' : 'alt';
|
||||
|
||||
var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : defaultModifier ) + 'Key';
|
||||
@ -17,6 +20,8 @@
|
||||
});
|
||||
}
|
||||
} );
|
||||
|
||||
}
|
||||
})();
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user