From 812b802c1cf896f2af44cd87eef63be4ecf98842 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 31 Jan 2019 20:13:32 +0100 Subject: resize event tweaks for #2300 --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 8439017..b8ad6a0 100644 --- a/README.md +++ b/README.md @@ -994,10 +994,12 @@ Limitations: ### Resize Event -When reveal.js changes the scale of the slides it fires an resize event. You can subscribe to the event to resize your elements accordingly. +When reveal.js changes the scale of the slides it fires a resize event. You can subscribe to the event to resize your elements accordingly. ```javascript -Reveal.addEventListener( 'resize', function( event ) { /* console.log(event.scale,event.oldscale,event.size); */ } ); +Reveal.addEventListener( 'resize', function( event ) { + // event.scale, event.oldScale, event.size +} ); ``` ### postMessage API -- cgit v1.2.3