mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 08:07:49 +00:00
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:
+4
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user