We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68fa39f commit 4c57ad9Copy full SHA for 4c57ad9
js/reveal.js
@@ -928,19 +928,31 @@ var Reveal = (function(){
928
*/
929
function pause() {
930
931
+ var wasPaused = dom.wrapper.classList.contains( 'paused' );
932
+
933
cancelAutoSlide();
934
dom.wrapper.classList.add( 'paused' );
935
936
+ if( wasPaused === false ) {
937
+ dispatchEvent( 'paused' );
938
+ }
939
940
}
941
942
/**
943
* Exits from the paused mode.
944
945
function resume() {
946
947
948
949
cueAutoSlide();
950
dom.wrapper.classList.remove( 'paused' );
951
952
+ if( wasPaused ) {
953
+ dispatchEvent( 'resumed' );
954
955
956
957
958
0 commit comments