Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(mobile): create button (#4361)

Peter Chinman71d2b7243d3e
diff --git a/js/app/packages/app/component/mobile/MobileDock.tsx b/js/app/packages/app/component/mobile/MobileDock.tsx
index 04069ed5d7..5ecbb3656a 100644
--- a/js/app/packages/app/component/mobile/MobileDock.tsx
+++ b/js/app/packages/app/component/mobile/MobileDock.tsx
@@ -134,27 +134,6 @@ type MobileDockMenuItem = {
onSelect: () => void;
};
-// Dock menu triggers open on pointer-down (see fireOnPress), which also arms
-// the hold-and-drag-to-select gesture. The opening touch lifts after the
-// overlay is up, and its trailing synthesized click would land on whatever is
-// now under the finger: a freshly-mounted menu item (accidental selection) or
-// another dock button after a drag-release dismisses the menu. Swallow that one
-// click (capture phase, one-shot) so the opening touch can't leak through. The
-// timeout clears the listener if no ghost click arrives.
-function suppressNextClick() {
- const onClick = (e: MouseEvent) => {
- e.stopPropagation();
- e.preventDefault();
- cleanup();
- };
- const cleanup = () => {
- document.removeEventListener('click', onClick, true);
- clearTimeout(timer);
- };
- const timer = setTimeout(cleanup, 400);
- document.addEventListener('click', onClick, true);
-}
-
function MobileDockMenu(props: {
triggerIcon: IconComponent;
triggerAriaLabel: string;
@@ -177,7 +156,6 @@ function MobileDockMenu(props: {
setMounted(true);
setOpen(true);
// Block the opening touch's trailing click (see suppressNextClick).
- suppressNextClick();
};
const closeMenu = () => {
@@ -324,7 +302,7 @@ function MobileDockMenu(props: {
<button
type="button"
class="flex h-9 shrink-0 items-center justify-between px-3 text-sm font-medium text-ink-muted"
- onClick={() => {
+ onPointerDown={() => {
hapticImpact('light');
closeMenu();
}}
diff --git a/js/app/tauri/src-tauri/gen/apple/app_iOS/Info.plist b/js/app/tauri/src-tauri/gen/apple/app_iOS/Info.plist
index 4323386818..d32f084352 100644
--- a/js/app/tauri/src-tauri/gen/apple/app_iOS/Info.plist
+++ b/js/app/tauri/src-tauri/gen/apple/app_iOS/Info.plist
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>2.0.5</string>
+ <string>2.5.0</string>
<key>CFBundleURLTypes</key>
<array>
<dict>