diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2019-01-31 20:13:32 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2019-01-31 20:13:32 +0100 |
commit | 812b802c1cf896f2af44cd87eef63be4ecf98842 (patch) | |
tree | 70e1a8e6a7558f62fa3d686b588328e223528922 /README.md | |
parent | 9c1615fff1b9a31e4ea5bd0e33b585ee9a888b39 (diff) | |
download | perl-software-in-gnu-guix-812b802c1cf896f2af44cd87eef63be4ecf98842.tar perl-software-in-gnu-guix-812b802c1cf896f2af44cd87eef63be4ecf98842.tar.gz |
resize event tweaks for #2300
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |