Commit 0dfbfe9a authored by Matthew Lloyd's avatar Matthew Lloyd

iOS: Call setNeedsLayout() in scrollViewDidScroll()

Otherwise, the web view scrolls in blank white space which
doesn't get painted until the scroll gesture is finished,
because the WKWebView hasn't rendered that part of the
viewport to its offscreen buffer.
parent 11da457d
......@@ -622,6 +622,7 @@ public class InAppWebView: WKWebView, UIScrollViewDelegate, WKUIDelegate, WKNavi
let y = Int(scrollView.contentOffset.y / scrollView.contentScaleFactor)
onScrollChanged(x: x, y: y)
}
setNeedsLayout()
}
public func onLoadStart(url: String) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment