From 5be9106ffe9574f27ba605fb0985b8144623c826 Mon Sep 17 00:00:00 2001 From: gravel Date: Sat, 27 May 2023 16:01:54 +0000 Subject: [PATCH] Only scroll to row on load --- output/main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/output/main.js b/output/main.js index 39e9a78..0b53555 100644 --- a/output/main.js +++ b/output/main.js @@ -88,6 +88,12 @@ function reactToURLParameters() { return; } + // manual scrolling to prevent jumping after every modal open + + row.scrollIntoView({ + behavior: "smooth" + }); + try { displayQRModal(communityID); } catch (e) { @@ -183,12 +189,6 @@ function displayQRModal(communityID, pane = 0) { location.hash=`#${communityID}`; - // manual scrolling to prevent jumping after every modal open - - row.scrollIntoView({ - behavior: "smooth" - }); - modal.showModal(); }