From 28a1df2502b447bc786c93ea202e253b9ef05759 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 29 Jun 2026 19:33:03 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13207#issuecomment-4831189927 Signed-off-by: Daniel <845765@qq.com> --- app/src/mobile/util/touch.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.ts index 64a153417..76ffa8824 100644 --- a/app/src/mobile/util/touch.ts +++ b/app/src/mobile/util/touch.ts @@ -8,7 +8,7 @@ import { import {closeModel, closePanel} from "./closePanel"; import {popMenu} from "../menu"; import {activeBlur} from "./keyboardToolbar"; -import {isChromeBrowser, isIPhone} from "../../protyle/util/compatibility"; +import {isChromeBrowser, isInAndroid, isInHarmony, isIPhone} from "../../protyle/util/compatibility"; import {getRangeByPoint} from "../../protyle/util/selection"; import {getCurrentEditor} from "../editor"; import {Constants} from "../../constants"; @@ -53,7 +53,9 @@ export const handleTouchEnd = (event: TouchEvent) => { const target = event.target as HTMLElement; const currentTime = Date.now(); const editor = getCurrentEditor(); - handleTouchUp(); + if (!isInHarmony() && !isInAndroid()) { + handleTouchUp(); + } if (Math.abs(clientX - event.changedTouches[0].clientX) < 5 && Math.abs(clientY - event.changedTouches[0].clientY) < 5) { if (editor && editor.protyle.toolbar.isMultiSelectMode()) { if (longPressTimer) {