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.
This commit is contained in:
Matthew Lloyd 2019-04-26 18:02:30 -04:00
parent 11da457d51
commit 0dfbfe9a35

View File

@ -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) {