Skip to content

Commit

Permalink
note about #226 in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Nov 12, 2012
1 parent 4fbec5e commit 4c89380
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ Reveal.addEventListener( 'ready', function( event ) {

An 'slidechanged' event is fired each time the slide is changed (regardless of state). The event object holds the index values of the current slide as well as a reference to the previous and current slide HTML nodes.

Some libraries, like MathJax (see [#226](https://github.com/hakimel/reveal.js/issues/226#issuecomment-10261609)), get confused by the transforms and display states of slides. Often times, this can be fixed by calling their update or render function from this callback.

```javascript
Reveal.addEventListener( 'slidechanged', function( event ) {
// event.previousSlide, event.currentSlide, event.indexh, event.indexv
Expand Down

0 comments on commit 4c89380

Please sign in to comment.