impress / impress.js

It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com.
http://impress.js.org
MIT License
37.65k stars 6.66k forks source link

Fix slides continuing during blackout #810

Closed Christoph-Neumann-1 closed 2 years ago

Christoph-Neumann-1 commented 2 years ago

When triggering blackout the content would be hidden. Autoplay, however, would not be paused because the util variable was null. This happened because immediately after assigning to the correct util variable, a new one was defined using the var keyword. I don't know a lot about javascript, but, as I understand it,this somehow overwrote the original variable, as its value was null afterwards. This second variable was never used anywhere, so I believe it is safe to remove it. I don't understand why the util variable is necessary at all as substituting api.lib.util everywhere seems to work just fine and makes it clear what util refers to.

henrikingo commented 2 years ago

Thanks for the fix!