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(); }