From 83678709f32c8f7e0e83efd93e4a493d1154bd6e Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sun, 4 Apr 2021 14:43:26 +0800
Subject: ...

---
 FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx | 4 ++++
 1 file changed, 4 insertions(+)

(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 704e51fb..1c8873f9 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
@@ -10,6 +10,8 @@ import { getAlertHost } from "@/services/alert";
 import Timeline from "./Timeline";
 import TimelinePostEdit from "./TimelinePostEdit";
 
+import useReverseScrollPositionRemember from "@/utilities/useReverseScrollPositionRemember";
+
 export interface TimelinePageCardProps {
   timeline: HttpTimelineInfo;
   collapse: boolean;
@@ -35,6 +37,8 @@ const TimelinePageTemplate: React.FC<TimelinePageTemplateProps> = (props) => {
     HttpTimelineInfo | "loading" | "offline" | "notexist" | "error"
   >("loading");
 
+  useReverseScrollPositionRemember();
+
   React.useEffect(() => {
     setTimeline("loading");
   }, [timelineName]);
-- 
cgit v1.2.3

