fix(core): 修复移动端切换状态栏时偶发无响应问题

This commit is contained in:
王立帮
2025-11-04 17:24:32 +08:00
parent f5d6c3a588
commit a6bdd6572b

View File

@@ -68,12 +68,18 @@
instanceId += 1
this.setupCustomProperties()
$(this.el).on('click', '.chrome-tab', (event) => {
$(this.el).on('click touchend', '.chrome-tab', (event) => {
if (event.type === 'touchend') {
event.preventDefault()
}
this.setCurrentTab(event.currentTarget)
})
$(this.el).on('click', '.chrome-tab-close', (event) => {
$(this.el).on('click touchend', '.chrome-tab-close', (event) => {
event.stopPropagation()
if (event.type === 'touchend') {
event.preventDefault()
}
const $tab = $(event.currentTarget).closest('.chrome-tab')
if (!this.checkDestroy({ detail: { tabEl: $tab[0] } })) {
return