fix: Zoom/Scroll auf iOS unterbinden (Viewport-Scale gesperrt)
WebView öffnete zoomed-in → Inhalt größer als Viewport → scrollbar. maximum-scale/user-scalable=no im Viewport-Meta + text-size-adjust und touch-action: manipulation sperren Pinch-/Auto-Zoom. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
||||
<title>Snakkimo</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -9,6 +9,15 @@
|
||||
"revision" : "44ae2505f54a80c5e559533950886d0644fc2fca",
|
||||
"version" : "8.4.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"identity" : "swiftkeychainwrapper",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/jrendel/SwiftKeychainWrapper.git",
|
||||
"state" : {
|
||||
"revision" : "185a3165346a03767101c4f62e9a545a0fe0530f",
|
||||
"version" : "4.0.1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"version" : 3
|
||||
|
||||
@@ -11,14 +11,16 @@ let package = Package(
|
||||
targets: ["CapApp-SPM"])
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", exact: "8.4.0")
|
||||
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", exact: "8.4.0"),
|
||||
.package(name: "CapacitorSecureStoragePlugin", path: "../../../node_modules/capacitor-secure-storage-plugin")
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "CapApp-SPM",
|
||||
dependencies: [
|
||||
.product(name: "Capacitor", package: "capacitor-swift-pm"),
|
||||
.product(name: "Cordova", package: "capacitor-swift-pm")
|
||||
.product(name: "Cordova", package: "capacitor-swift-pm"),
|
||||
.product(name: "CapacitorSecureStoragePlugin", package: "CapacitorSecureStoragePlugin")
|
||||
]
|
||||
)
|
||||
]
|
||||
|
||||
@@ -74,6 +74,9 @@ html {
|
||||
inset: 0;
|
||||
overflow: hidden;
|
||||
overscroll-behavior: none;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
text-size-adjust: 100%;
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
body {
|
||||
|
||||
Reference in New Issue
Block a user