mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 12:42:51 +00:00
perf: 优化移动端选中消息文本
This commit is contained in:
parent
119443cc88
commit
d23d77ff90
@ -2915,7 +2915,7 @@ export default {
|
||||
|
||||
onThrottleScroll: throttle(function (target) {
|
||||
if (this.operatePreventScroll === 0 && this.operateVisible) {
|
||||
this.operateVisible = !!this.getSelectedTextInElement(target) && target?.querySelector(`[unique="${this.operateItem.id}"]`)?.classList.contains('item-enter')
|
||||
this.operateVisible = !!this.getSelectedTextInElement(target) && !target?.querySelector(`[unique="${this.operateItem.id}"]`)?.classList.contains('item-leave')
|
||||
}
|
||||
}, 100),
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user