Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

fix(ui): install the reordered-tap shim only in WebKit (#1462)

l0ng-aia5fb38096076
diff --git a/src/main.tsx b/src/main.tsx
index 9b55abf3c..af66b639e 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();