diff options
| Commit | 64715a1132aab0bb8e2964db110da7c3b1336078 (patch) | |
|---|---|---|
| Author | 2022-09-27 21:53:51 +0300 | |
| Committer | 2022-09-27 21:53:51 +0300 | |
| Files | 62558b5d1833925a3de092d65c2f193068473b5c /src/scripts | |
| syndamia.com-64715a1132aab0bb8e2964db110da7c3b1336078.tar syndamia.com-64715a1132aab0bb8e2964db110da7c3b1336078.tar.gz syndamia.com-64715a1132aab0bb8e2964db110da7c3b1336078.zip | ||
| Parent | cc63804c6cfc3393aa349e355e79a58e7a175b46 (diff) | |
[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 } |