Skip to content

Commit

Permalink
auto-slide duration falls back on global setting instead of looking a…
Browse files Browse the repository at this point in the history
…t first fragment
  • Loading branch information
hakimel committed Jun 16, 2023
1 parent 227f90f commit 12f5ba4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/reveal.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js.map

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -2205,10 +2205,6 @@ export default function( revealElement, options ) {

let fragment = currentSlide.querySelector( '.current-fragment' );

// When the slide first appears there is no "current" fragment so
// we look for a data-autoslide timing on the first fragment
if( !fragment ) fragment = currentSlide.querySelector( '.fragment' );

let fragmentAutoSlide = fragment ? fragment.getAttribute( 'data-autoslide' ) : null;
let parentAutoSlide = currentSlide.parentNode ? currentSlide.parentNode.getAttribute( 'data-autoslide' ) : null;
let slideAutoSlide = currentSlide.getAttribute( 'data-autoslide' );
Expand Down

0 comments on commit 12f5ba4

Please sign in to comment.