<commit_before>// Custom reveal.js integration
(function(){
	var isEnabled = true;

	document.querySelector( '.reveal .slides' ).addEventListener( 'mousedown', function( event ) {
		var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : 'ctrl' ) + 'Key';
		var zoomLevel = ( Reveal.getConfig().zoomLevel ? Reveal.getConfig().zoomLevel : 2 );

		if( event[ modifier ] && isEnabled ) {
			event.preventDefault();

			zoom.to({
				x: event.clientX - window.innerWidth / (zoomLevel * 2),
				y: event.clientY - window.innerHeight / (zoomLevel * 2),
				width: window.innerWidth / zoomLevel,
				height: window.innerHeight / zoomLevel,
				pan: false
			});
		}
	} );

	Reveal.addEventListener( 'overviewshown', function() { isEnabled = false; } );
	Reveal.addEventListener( 'overviewhidden', function() { isEnabled = true; } );
})();
<commit_msg>simplify point zoom, switch back to alt + click shortcut for os x support #1909<commit_after>// Custom reveal.js integration
(function(){
	document.querySelector( '.reveal .slides' ).addEventListener( 'mousedown', function( event ) {
		var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : 'alt' ) + 'Key';
		var zoomLevel = ( Reveal.getConfig().zoomLevel ? Reveal.getConfig().zoomLevel : 2 );

		if( event[ modifier ] && !Reveal.isOverview() ) {
			event.preventDefault();

			zoom.to({
				x: event.clientX,
				y: event.clientY,
				scale: zoomLevel,
				pan: false
			});
		}
	} );
})();

{'fraction_non_alphanumeric': 0.1619241192411924, 'fraction_numerical': 0.005420054200542005, 'mean_word_length': 3.811074918566775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2812473', 'n_tokens_mistral': 541, 'n_tokens_neox': 463, 'n_words': 110}