fix: 部分手机出现非正常滚动到底部的情况

This commit is contained in:
kuaifan 2024-03-07 15:52:47 +08:00
parent 38d8f289e4
commit 7464de3adc

View File

@ -2155,16 +2155,10 @@ export default {
this.__msgs_height = height; this.__msgs_height = height;
}, },
onScrollGroupResize({height}) { onScrollGroupResize() {
const {offset, tail} = this.scrollInfo()
if (this.stickToBottom) { if (this.stickToBottom) {
this.onToBottom() this.onToBottom()
} else if (tail > 0
&& typeof this.__scroll_group_data !== "undefined"
&& offset - this.__scroll_group_data.offset + tail === height - this.__scroll_group_data.height) {
this.onToBottom()
} }
this.__scroll_group_data = {height, offset, tail}
}, },
onActive() { onActive() {