Browse Source

stop playing media inside of fragments when the fragment is hidden

Hakim El Hattab 4 years ago
parent
commit
6d735ddaf8
3 changed files with 1 additions and 0 deletions
  1. 0 0
      dist/reveal.esm.js
  2. 0 0
      dist/reveal.js
  3. 1 0
      js/controllers/fragments.js

File diff suppressed because it is too large
+ 0 - 0
dist/reveal.esm.js


File diff suppressed because it is too large
+ 0 - 0
dist/reveal.js


+ 1 - 0
js/controllers/fragments.js

@@ -235,6 +235,7 @@ export default class Fragments {
 						el.classList.remove( 'current-fragment' );
 						el.classList.remove( 'current-fragment' );
 
 
 						if( wasVisible ) {
 						if( wasVisible ) {
+							this.Reveal.slideContent.stopEmbeddedContent( el );
 							changedFragments.hidden.push( el );
 							changedFragments.hidden.push( el );
 							this.Reveal.dispatchEvent({
 							this.Reveal.dispatchEvent({
 								target: el,
 								target: el,

Some files were not shown because too many files changed in this diff