mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-14 16:35:07 +01:00
reader mode now works for embedded decks
This commit is contained in:
parent
0072845828
commit
ff252c984f
7 changed files with 20 additions and 19 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue