1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-13 10:04:45 +02:00

reader mode now works for embedded decks

This commit is contained in:
Hakim El Hattab
2023-10-25 11:32:40 +02:00
parent 0072845828
commit ff252c984f
7 changed files with 20 additions and 19 deletions

View File

@@ -417,7 +417,7 @@ export default function( revealElement, options ) {
function setupScrollPrevention() {
setInterval( () => {
if( dom.wrapper.scrollTop !== 0 || dom.wrapper.scrollLeft !== 0 ) {
if( !reader.isActive() && dom.wrapper.scrollTop !== 0 || dom.wrapper.scrollLeft !== 0 ) {
dom.wrapper.scrollTop = 0;
dom.wrapper.scrollLeft = 0;
}