diff options
author | crupest <crupest@outlook.com> | 2021-04-13 18:41:07 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-13 18:41:07 +0800 |
commit | fe83d46e84b728bd374b4adddf1e1426c813e078 (patch) | |
tree | b13fa2b0c1dcf744dd20a0ba4052823b5936f012 /FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx | |
parent | a562777b2a296af27cf3b4cbad7af9b99ee9d353 (diff) | |
download | timeline-fe83d46e84b728bd374b4adddf1e1426c813e078.tar.gz timeline-fe83d46e84b728bd374b4adddf1e1426c813e078.tar.bz2 timeline-fe83d46e84b728bd374b4adddf1e1426c813e078.zip |
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx index 4f9c6e97..fd59203a 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx @@ -34,7 +34,7 @@ const TimelinePostView: React.FC<TimelinePostViewProps> = (props) => { const cardRef = React.useRef<HTMLDivElement>(null!); React.useEffect(() => { const cardIntersectionObserver = new IntersectionObserver(([e]) => { - if (e.isIntersecting) { + if (e.intersectionRatio > 0) { cardRef.current.style.animationName = "timeline-post-enter"; } }); |