aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-04 14:43:26 +0800
committercrupest <crupest@outlook.com>2021-04-04 14:43:26 +0800
commit2c4967facc546e718f5a2f4c9324722324b1f4a5 (patch)
tree32219003468a90f80bc9cf97b60ea9ae9f7c903d /FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
parent4899fac577f92d3c3feade4869621ef6979460c1 (diff)
downloadtimeline-2c4967facc546e718f5a2f4c9324722324b1f4a5.tar.gz
timeline-2c4967facc546e718f5a2f4c9324722324b1f4a5.tar.bz2
timeline-2c4967facc546e718f5a2f4c9324722324b1f4a5.zip
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx4
1 files changed, 4 insertions, 0 deletions
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]);