From a6bdd6572b84e402cd462664f64e43310910c718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=AB=8B=E5=B8=AE?= <3294713004@qq.com> Date: Tue, 4 Nov 2025 17:24:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(core):=20=E4=BF=AE=E5=A4=8D=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E5=88=87=E6=8D=A2=E7=8A=B6=E6=80=81=E6=A0=8F?= =?UTF-8?q?=E6=97=B6=E5=81=B6=E5=8F=91=E6=97=A0=E5=93=8D=E5=BA=94=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/modules/web-modules/chrome-tabs.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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