1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-06 22:57:21 +02:00

separate reader mode into individual controller, add scroll triggers for fragments

This commit is contained in:
Hakim El Hattab
2023-09-14 13:00:31 +02:00
parent 6aa1eae796
commit f26d31570e
15 changed files with 415 additions and 211 deletions

View File

@@ -26,7 +26,7 @@ export default class SlideContent {
shouldPreload( element ) {
// Prefer an explicit global preload setting
let preload = this.Reveal.getConfig().preloadIframes;
let preload = this.Reveal.getConfig().preloadIframes || this.Reveal.isReaderMode();
// If no global setting is available, fall back on the element's
// own preload setting