diff --git a/common/modules/web-modules/chrome-tabs.js b/common/modules/web-modules/chrome-tabs.js index 33254797..822bdc7d 100644 --- a/common/modules/web-modules/chrome-tabs.js +++ b/common/modules/web-modules/chrome-tabs.js @@ -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