From 0cfdf15cfa37759af9396c2b4a56b4a9d342b754 Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 7 Sep 2023 22:42:33 +0600 Subject: [PATCH] scroll to top on tab change in popups --- src/front/cobalt.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/front/cobalt.js b/src/front/cobalt.js index 99301f4..c02ae3a 100644 --- a/src/front/cobalt.js +++ b/src/front/cobalt.js @@ -133,6 +133,7 @@ function changeTab(evnt, tabId, tabClass) { evnt.currentTarget.dataset.enabled = "true"; eid(tabId).dataset.enabled = "true"; + eid(tabId).parentElement.scrollTop = 0; if (tabId === "tab-about-changelog" && sGet("changelogStatus") !== `${version}`) notificationCheck("changelog"); if (tabId === "tab-about-about" && !sGet("seenAbout")) notificationCheck("about");