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 {
) as HTMLElement;
if (wrap) {
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