fix(core): 修复移动端切换状态栏时偶发无响应问题
This commit is contained in:
@@ -68,12 +68,18 @@
|
|||||||
instanceId += 1
|
instanceId += 1
|
||||||
|
|
||||||
this.setupCustomProperties()
|
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.setCurrentTab(event.currentTarget)
|
||||||
})
|
})
|
||||||
|
|
||||||
$(this.el).on('click', '.chrome-tab-close', (event) => {
|
$(this.el).on('click touchend', '.chrome-tab-close', (event) => {
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
|
if (event.type === 'touchend') {
|
||||||
|
event.preventDefault()
|
||||||
|
}
|
||||||
const $tab = $(event.currentTarget).closest('.chrome-tab')
|
const $tab = $(event.currentTarget).closest('.chrome-tab')
|
||||||
if (!this.checkDestroy({ detail: { tabEl: $tab[0] } })) {
|
if (!this.checkDestroy({ detail: { tabEl: $tab[0] } })) {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user