Skip to content

Commit 71701b2

Browse files
authored
🤖 Fix iOS PWA keyboard not appearing on input focus (#372)
1 parent a19e53a commit 71701b2

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
5+
<meta
6+
name="viewport"
7+
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, interactive-widget=resizes-content"
8+
/>
69
<meta name="description" content="Parallel agentic development with Electron + React" />
710
<meta name="theme-color" content="#1e1e1e" />
811
<link rel="manifest" href="/manifest.json" />

src/App.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ const globalStyles = css`
6464
html {
6565
/* Prevent text size adjustment on orientation change */
6666
-webkit-text-size-adjust: 100%;
67-
/* Improve tap responsiveness */
68-
touch-action: manipulation;
6967
}
7068
7169
body {
@@ -79,6 +77,15 @@ const globalStyles = css`
7977
[role="button"] {
8078
min-height: 44px;
8179
min-width: 44px;
80+
/* Improve tap responsiveness on buttons only */
81+
touch-action: manipulation;
82+
}
83+
84+
/* Ensure input elements allow default touch behavior for iOS keyboard */
85+
input,
86+
textarea,
87+
select {
88+
touch-action: auto;
8289
}
8390
}
8491

0 commit comments

Comments
 (0)