From b57e41014fa07b616a49e213b4a869a8bff7c445 Mon Sep 17 00:00:00 2001 From: lxsang Date: Wed, 9 Dec 2020 12:00:23 +0100 Subject: [PATCH] fix scrolldown bug --- talk/assets/quicktalk.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/talk/assets/quicktalk.js b/talk/assets/quicktalk.js index 4fb66d8..de2f929 100644 --- a/talk/assets/quicktalk.js +++ b/talk/assets/quicktalk.js @@ -200,8 +200,9 @@ class QuickTalk { container.appendChild(footer); at.appendChild(container); if (this.options.page) { - this.options.page.scrollTop = this.options.page.scrollHeight; + this.options.page.scrollTop = container.offsetTop; } + //container.scrollIntoView(); return container; }