From 126365627b30e66b4dc3e1407d1b457094f6cbc2 Mon Sep 17 00:00:00 2001 From: Mario Wolff Date: Tue, 15 Jan 2019 13:18:55 +0100 Subject: [PATCH] fixed documentation on resize event --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4804c29..9bf6b22 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ reveal.js comes with a broad range of features including [nested slides](https:/ - [Fullscreen mode](#fullscreen-mode) - [Embedded media](#embedded-media) - [Stretching elements](#stretching-elements) + - [Resize Event](#resize-event) - [postMessage API](#postmessage-api) - [PDF Export](#pdf-export) - [Theming](#theming) @@ -963,7 +964,7 @@ Limitations: 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. ```javascript -Reveal.addEventListener( 'overviewshown', function( event ) { /* console.log(event.scale,event.oldscale,event.size); */ } ); +Reveal.addEventListener( 'resize', function( event ) { /* console.log(event.scale,event.oldscale,event.size); */ } ); ``` ### postMessage API