From c7a3813b8c64152e91fdd0f99e8f0baf0fef4678 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sat, 13 Feb 2021 21:55:47 +0800
Subject: ...

---
 FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx | 9 ---------
 1 file changed, 9 deletions(-)

(limited to 'FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx')

diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
index 6a8dd63c..92eb0887 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
@@ -29,15 +29,6 @@ export default function TimelinePageTemplate<TManageItem>(
     null
   );
 
-  // TODO: Auto scroll.
-  // const [scrollBottomKey, _setScrollBottomKey] = React.useState<number>(0);
-
-  // React.useEffect(() => {
-  //   if (scrollBottomKey > 0) {
-  //     window.scrollTo(0, document.body.scrollHeight);
-  //   }
-  // }, [scrollBottomKey]);
-
   const [timeline, setTimeline] = React.useState<
     HttpTimelineInfo | "loading" | "offline" | "notexist" | "error"
   >("loading");
-- 
cgit v1.2.3

