From 327cdbc873912aeb0adeb104e539c622bf581df8 Mon Sep 17 00:00:00 2001 From: Pang Date: Thu, 21 Dec 2023 01:04:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20android=20=E9=95=BF=E6=8C=89=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/directives/longpress.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/directives/longpress.js b/resources/assets/js/directives/longpress.js index e2dd941ea..c52b2d974 100644 --- a/resources/assets/js/directives/longpress.js +++ b/resources/assets/js/directives/longpress.js @@ -16,7 +16,9 @@ const longpress = { el.__longpressContextmenu__ = (e) => { e.preventDefault() e.stopPropagation() - callback(e, el) + if (!isSupportTouch) { + callback(e, el) + } } el.addEventListener('contextmenu', el.__longpressContextmenu__); // 不支持touch