From 9c0213011bf8261ee0d22e7b1374707dae35a9a7 Mon Sep 17 00:00:00 2001 From: Maximilian Leo Huber <maximilian.huber@uni-bielefeld.de> Date: Wed, 18 Sep 2024 10:41:52 +0000 Subject: [PATCH] removing specific function for scroll to top --- src/App/App.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/App/App.tsx b/src/App/App.tsx index 05e1143b..6764d14f 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -23,10 +23,8 @@ import "./LoadingScreen.css"; const App = () => { - window.onbeforeunload = function () { - window.scrollTo(0, 0); - } - + window.scrollTo(0, 0); + const [isLoading, setIsLoading] = useState(true); const pathMapping = getPathMapping(); -- GitLab