Remove comment

This commit is contained in:
linux-man 2017-05-21 19:49:07 +01:00
parent 9c3a65744c
commit ce467b53bc

View file

@ -3,14 +3,14 @@
var isEnabled = true; var isEnabled = true;
document.querySelector( '.reveal .slides' ).addEventListener( 'mousedown', function( event ) { document.querySelector( '.reveal .slides' ).addEventListener( 'mousedown', function( event ) {
var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : 'ctrl' ) + 'Key';//cl var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : 'ctrl' ) + 'Key';
var zoomLevel = ( Reveal.getConfig().zoomLevel ? Reveal.getConfig().zoomLevel : 2 ); var zoomLevel = ( Reveal.getConfig().zoomLevel ? Reveal.getConfig().zoomLevel : 2 );
if( event[ modifier ] && isEnabled ) { if( event[ modifier ] && isEnabled ) {
event.preventDefault(); event.preventDefault();
zoom.to({ zoom.to({
x: event.clientX - window.innerWidth / (zoomLevel * 2),//cl x: event.clientX - window.innerWidth / (zoomLevel * 2),
y: event.clientY - window.innerHeight / (zoomLevel * 2), y: event.clientY - window.innerHeight / (zoomLevel * 2),
width: window.innerWidth / zoomLevel, width: window.innerWidth / zoomLevel,
height: window.innerHeight / zoomLevel, height: window.innerHeight / zoomLevel,