perf: 优化移动端选中消息文本

This commit is contained in:
kuaifan 2025-03-25 17:35:47 +08:00
parent b482947207
commit 27ae831799

View File

@ -2915,7 +2915,7 @@ export default {
onThrottleScroll: throttle(function (target) {
if (this.operatePreventScroll === 0 && this.operateVisible) {
this.operateVisible = !!this.getSelectedTextInElement(target)
this.operateVisible = !!this.getSelectedTextInElement(target) && target?.querySelector(`[unique="${this.operateItem.id}"]`)?.classList.contains('item-enter')
}
}, 100),