Commit 244c2c93 by Sixong.Zhu

offset

parent ece66d8a
Showing with 9 additions and 2 deletions
...@@ -215,9 +215,16 @@ export default class MessageList extends Vue { ...@@ -215,9 +215,16 @@ export default class MessageList extends Vue {
) as HTMLElement; ) as HTMLElement;
if (wrap) { if (wrap) {
if (delay) { if (delay) {
return setTimeout(() => (wrap.scrollTop = wrap.scrollHeight), delay); return setTimeout(
() =>
(wrap.scrollTop = Math.max(
wrap.scrollHeight,
10000
)),
delay
);
} }
wrap.scrollTop = wrap.scrollHeight; wrap.scrollTop = Math.max(wrap.scrollHeight, 10000);
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment