@capgo/capacitor-inappbrowser 8.12.2-beta.pr634.541.1 → 8.12.2-beta.pr634.543.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -274,7 +274,7 @@ enum ReloadGestureSupport {
|
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
/// Resting offset for the current adjusted top inset (safe-area aware).
|
|
277
|
-
/// - forceToRestingTop:
|
|
277
|
+
/// - Parameter forceToRestingTop: After gesture reload, always snap to resting top (fixes clipped header).
|
|
278
278
|
/// Otherwise only un-overscroll after a cancelled pull.
|
|
279
279
|
static func contentOffsetYAfterReloadReset(
|
|
280
280
|
currentY: CGFloat,
|
|
@@ -117,17 +117,17 @@ extension WKWebViewController {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
func stopReloadGesture(for navigation: WKNavigation? = nil) {
|
|
120
|
-
|
|
120
|
+
// Ordinary page finishes must not clear an armed pull the user is still holding.
|
|
121
|
+
guard reloadFromGestureInProgress else { return }
|
|
121
122
|
|
|
122
123
|
// Ignore unrelated navigation callbacks while a gesture reload is in flight.
|
|
123
|
-
if
|
|
124
|
-
let expected = reloadGestureNavigation,
|
|
124
|
+
if let expected = reloadGestureNavigation,
|
|
125
125
|
let navigation,
|
|
126
126
|
expected !== navigation {
|
|
127
127
|
return
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
pendingReloadFromGesture = false
|
|
131
131
|
reloadFromGestureInProgress = false
|
|
132
132
|
reloadGestureNavigation = nil
|
|
133
133
|
reloadGestureArmedPullDistance = 0
|
|
@@ -136,8 +136,6 @@ extension WKWebViewController {
|
|
|
136
136
|
let scrollView = activeWebView.scrollView
|
|
137
137
|
scrollView.refreshControl?.endRefreshing()
|
|
138
138
|
|
|
139
|
-
guard shouldResetScroll else { return }
|
|
140
|
-
|
|
141
139
|
// UIRefreshControl + WKWebView.reload() often leave offset at 0 instead of
|
|
142
140
|
// -adjustedContentInset.top (clips header ~safe-area) and block the next pull.
|
|
143
141
|
DispatchQueue.main.async { [weak self] in
|
package/package.json
CHANGED