From 4130885001dfcb527508cc9a4b7485142bbf79ef Mon Sep 17 00:00:00 2001 From: Yan Date: Fri, 5 Jan 2024 13:10:52 +0300 Subject: [PATCH] Fix #97 --- src/features/expandos/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/expandos/index.ts b/src/features/expandos/index.ts index 9c87929..2ccf13f 100644 --- a/src/features/expandos/index.ts +++ b/src/features/expandos/index.ts @@ -47,12 +47,12 @@ export default class Expandos extends OLFeature { thumbnailDiv.addEventListener("click", async (e) => { e.preventDefault(); - preventBodyScroll(); const expando_btn_R = post.querySelector(".expando-button"); const gallery = await this.getGallery(post); this.activeGallery = gallery; if (gallery) { + preventBodyScroll(); history.pushState({"galleryId": post.dataset.fullname}, '', "#gallery"); gallery.openGallery(); } else if (expando_btn_R) {