Merge pull request #1386 from yashsinghcodes/1.4.0

Docs performance improvement
This commit is contained in:
Frikky
2024-05-13 14:34:45 +02:00
committed by GitHub
2 changed files with 105 additions and 58 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ function ScrollToTop({ getUserNotifications, curpath, setCurpath, history }) {
// Custom handler for certain scroll mechanics
//
//console.log("OLD: ", curpath, "NeW: ", window.location.pathname)
if (curpath === window.location.pathname && curpath === "/usecases") {
if (curpath === window.location.pathname && (curpath === "/usecases" ||
(curpath === "/docs" && location.hash.length > 0))) {
} else {
window.scroll({