[Bug]: Double tap-to-zoom works in iOS Webview even though zoomEnabled is false

未关闭
#8,226 5 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
ios
领域
mobile

调研方向

复现由 capacitor.config.json 和 dist/index.html 定义;从报告中的项目及其 npm start 同步/打开流程开始。检查 zoomEnabled 设置为 false 时 iOS WebView 的行为。完成标准是:在 iOS 应用中双击不再放大,同时缩放仍处于禁用状态。

由索引模型根据 Issue 内容生成。

描述

needs reproduction
Capacitor Version
💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 7.4.4
  @capacitor/core: 7.4.4
  @capacitor/android: 7.4.4
  @capacitor/ios: 7.4.4

Installed Dependencies:

  @capacitor/cli: 7.4.4
  @capacitor/android: 7.4.4
  @capacitor/ios: 7.4.4
  @capacitor/core: 7.4.4
Other API Details
% npm --version
11.6.0
% node --version
v24.10.0
% pod --version
1.16.2
Platforms Affected
  • iOS
  • Android
  • Web
Current Behavior

Double tapping in the iOS app zooms in on the double-tapped-on element.

Expected Behavior

There should not be any double tap to zoom either when zoomEnabled is false (which is the default value)

Project Reproduction

https://github.com/myarcana/capacitor-double-tap-to-zoom-issue

.
├── capacitor.config.json
├── dist
│   └── index.html
└── package.json
{
  "name": "capacitor-app",
  "type": "module",
  "scripts": {
    "start": "npx cap sync ios && npx cap open ios"
  },
  "dependencies": {
    "@capacitor/core": "latest",
    "@capacitor/ios": "^7.4.4"
  },
  "devDependencies": {
    "@capacitor/cli": "latest"
  }
}
{
  "appId": "double.tap",
  "appName": "doubletap",
  "webDir": "dist",
  "zoomEnabled": false
}
<!doctype html>
<html>
  <body style="display:grid;place-items:center;height:100vh;">
    double tap me
  </body>
</html>
Additional Information

No response

主要语言
TypeScript
星标
17.1k
派生
1.3k
平均合并
1 天 22 小时
30 天内合并 PR
26

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ionic-team/capacitor 的其他 Issue

查看 ionic-team/capacitor 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。