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.
This commit is contained in:
l0ng-ai
2026-11-05 13:09:56 +08:00
committed by GitHub
parent 8dedf5e73b
commit a5fb380960
+4 -1
View File
@@ -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();