html - 升级到 iOS 13 后双击缩放不起作用
问题描述
我们在 App 中使用 WKWebView 作为浏览器。
问题是当我们升级到 iOS 13 后添加点击事件监听器时,双击缩放不起作用。
您可以双击此页面上的文本进行复制。以下也是可以复制的最小网页。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
p {
width: 50px;
height: 200px;
}
</style>
</head>
<body>
<p class="text">Kappabashi Dougu Street is located in Tokyo's Taito City, along the west side of Asakusa's main entertainment district, and just midway between Ueno and Asakusa.<br> Merchants first began gathering in the Kappabashi area around 1912, selling old tools and a wide range of implements and hardware. Today, one can find almost every kind of restaurant equipment imaginable, including bakery equipment, Japanese, Western, and Chinese tableware, china, laquerware, restaurant equipment, packaging, containers, decorative goods, "fake" food samples, chefs' coats, signs, noren (shop curtains), bamboo wares, baking ingredients, food and beverage ingredients, confectionary wholesalers, Japanese furniture, Western furniture, kitchen equipment, refrigerators and refrigerated showcases, showcases, displays, shop design and construction services, and much more. At 800 meters (nearly a half-mile) in length, and with over 170 shops, this is Japan’s largest shopping street devoted to kitchen implements.</p>
<script>
document.addEventListener('click', (e) => {
}, false);
</script>
</body>
</html>
解决方案
推荐阅读
- sql - 使用 Groovy SQL 的 withBatch 更新数据库表
- javascript - 向 c:set 或 ArrayList 添加双引号
- iphone - 相对路径链接在 iphone 中不起作用
- arrays - 数组中的值无法更新 VBA Excel
- data-cleaning - 如何在python中将当前范围内的年龄列拆分为不同的年龄类别
- javascript - 由于 selectpicker 插件,如何修复文本模糊?
- python - 在熊猫中查找两列之间的关系函数
- ios - getSteam iOS sdk 的回调问题
- sequelize.js - 用于查询具有关联的关联的单个 Sequelize 查询
- ionic-framework - 如何在 ionic 3 中实现最新的屏幕方向,因为它没有检测到内置的 onchange 功能?