Skip to content

Commit 9e2c66e

Browse files
fix(mobile): MCP app views on iOS keep their flick momentum
AI-assisted; verified with the tests and tools listed above.
1 parent bec55ce commit 9e2c66e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/mobile/src/features/threads/McpAppWebView.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import { shareGeneratedAttachment } from "../../lib/attachmentDownload";
3434
import { mobileHtmlRenderTheme } from "../../lib/htmlRenderTheme";
3535
import { tryOpenExternalUrl } from "../../lib/openExternalUrl";
3636
import { uuidv4 } from "../../lib/uuid";
37+
import { webViewDecelerationRate } from "../../lib/webViewDecelerationRate";
3738
import { useAssetUrlState } from "../../state/assets";
3839
import { appAtomRegistry } from "../../state/atom-registry";
3940
import { useThreadShell } from "../../state/entities";
@@ -536,6 +537,7 @@ export function ThreadMcpApp(props: {
536537
accessibilityLabel={`${app.server} app`}
537538
style={{ flex: 1, backgroundColor: "transparent" }}
538539
nestedScrollEnabled
540+
decelerationRate={webViewDecelerationRate}
539541
originWhitelist={["*"]}
540542
// Android misreports nested frames as top-level; rely on iframe sandboxing there and gate navigation elsewhere.
541543
onShouldStartLoadWithRequest={(request) =>

0 commit comments

Comments
 (0)