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

---
 .../app/views/timeline-common/TimelinePagedPostListView.tsx   | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

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

diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx
index b91357dd..e0534695 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePagedPostListView.tsx
@@ -1,6 +1,7 @@
 import React from "react";
 
 import { HttpTimelinePostInfo } from "@/http/timeline";
+
 import TimelinePostListView from "./TimelinePostListView";
 
 export interface TimelinePagedPostListViewProps {
@@ -38,16 +39,6 @@ const TimelinePagedPostListView: React.FC<TimelinePagedPostListViewProps> = (
     }
   }, [lastViewCount, posts]);
 
-  React.useEffect(() => {
-    if (lastViewCount !== 10) {
-      document
-        .getElementById(
-          `timeline-post-${posts[posts.length - (lastViewCount - 10)].id}`
-        )
-        ?.scrollIntoView(true);
-    }
-  }, [lastViewCount, posts]);
-
   return (
     <TimelinePostListView
       className={className}
-- 
cgit v1.2.3

