From ff8782cc9079cb56524d281bff07331d14f80462 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Wed, 10 Jun 2020 14:31:26 +0800
Subject: fix(front): Add an additional condition for disable scroll to bottom.

---
 Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx')

diff --git a/Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx b/Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx
index 1cd772c2..a4bad6aa 100644
--- a/Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx
+++ b/Timeline/ClientApp/src/timeline/TimelinePageTemplateUI.tsx
@@ -82,6 +82,7 @@ export default function TimelinePageTemplateUI<
     const subscriptions = [
       fromEvent(window, 'wheel').subscribe(disableScrollToBottom),
       fromEvent(window, 'pointerdown').subscribe(disableScrollToBottom),
+      fromEvent(window, 'keydown').subscribe(disableScrollToBottom),
       resizeSubject.subscribe(() => {
         if (scrollToBottom) {
           window.scrollTo(0, document.body.scrollHeight);
-- 
cgit v1.2.3

