mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-01-17 13:28:29 +01:00
auto-slide duration falls back on global setting instead of looking at first fragment
This commit is contained in:
parent
227f90fa00
commit
12f5ba4c9d
2
dist/reveal.esm.js
vendored
2
dist/reveal.esm.js
vendored
File diff suppressed because one or more lines are too long
2
dist/reveal.esm.js.map
vendored
2
dist/reveal.esm.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/reveal.js
vendored
2
dist/reveal.js
vendored
File diff suppressed because one or more lines are too long
2
dist/reveal.js.map
vendored
2
dist/reveal.js.map
vendored
File diff suppressed because one or more lines are too long
@ -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' );
|
||||
|
Loading…
x
Reference in New Issue
Block a user