mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +00:00
perf: ipad 发送消息后出现页面跳动的情况
This commit is contained in:
parent
ed36d622ec
commit
e325698899
@ -951,12 +951,18 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
scrollIntoActive() {
|
scrollIntoActive() {
|
||||||
|
if (this.windowPortrait || this.windowScrollY > 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.windowLandscape && this.$refs.list) {
|
if (!this.$refs.list) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const active = this.$refs.list.querySelector(".active")
|
const active = this.$refs.list.querySelector(".active")
|
||||||
if (active) {
|
if (active) {
|
||||||
$A.scrollIntoViewIfNeeded(active);
|
$A.scrollIntoViewIfNeeded(active);
|
||||||
} else {
|
return;
|
||||||
|
}
|
||||||
const dialog = this.cacheDialogs.find(({id}) => id == this.dialogId)
|
const dialog = this.cacheDialogs.find(({id}) => id == this.dialogId)
|
||||||
if (dialog && this.dialogActive) {
|
if (dialog && this.dialogActive) {
|
||||||
this.dialogActive = '';
|
this.dialogActive = '';
|
||||||
@ -967,8 +973,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user