From a5fb3809607639504e6a6fe467e1ebc2ccebb9a6 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Thu, 5 Nov 2026 13:09:56 +0800 Subject: [PATCH] fix(ui): install the reordered-tap shim only in WebKit (#1462) The shim for WebKit bug 219670 also ran in Chromium on macOS (the e2e browser), where a scripted double-click stamps its second press like the release before it; the shim took that for a reordered tap and dispatched an extra click and dblclick, activating a tree row twice and timing out e2e/linkedGradle.spec.ts on a parallel-run prompt. It is now installed only in WebKit. --- src/main.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.tsx b/src/main.tsx index 9b55abf3..af66b639 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -32,7 +32,10 @@ if (import.meta.env.DEV && isTauri()) { } installRepeatedDoubleClick(); -if (guessOs() === "macos") installReorderedTapClick(); +// WebKit only (bug 219670). In Chromium (the e2e browser) a scripted double-click stamps its +// second press like the release before it, which the shim would take for a reordered tap and +// click twice. +if (guessOs() === "macos" && !/Chrome|Firefox/.test(navigator.userAgent)) installReorderedTapClick(); installWindowDrag(); installPointerFocus(); installErrorLogging();