diff options
[presentation] Fixed slides being misaligned when scrolling before starting slideshow
1 files changed, 1 insertions, 0 deletions
| -rw-r--r-- | src/scripts/presentation.js | 1 |
diff --git a/src/scripts/presentation.js b/src/scripts/presentation.js index b611355..88b4e11 100644 --- a/src/scripts/presentation.js +++ b/src/scripts/presentation.js @@ -52,4 +52,5 @@ presentBtn.onclick = function() { // Show the first slide slides[slideIndex].classList.toggle('absolute-slide'); slideIndex = 0; + window.scrollTo(0, 0); // Alignment of presentation to screen } |