Summary: | WKWebView window.scrollTo() scrolls to wrong position depending on contentInsetAdjustmentBehavior setting | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Zach Waugh <zwaugh> | ||||
Component: | Scrolling | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | NEW --- | ||||||
Severity: | Normal | CC: | simon.fraser, thorton, wenson_hsieh | ||||
Priority: | P2 | ||||||
Version: | Safari 11 | ||||||
Hardware: | iPhone / iPad | ||||||
OS: | iOS 11 | ||||||
Attachments: |
|
Description
Zach Waugh
2018-02-12 15:10:53 PST
Wenson, is this the thing you fixed? At a glance, this bug seems more related to how we handle contentInsetAdjustmentBehavior when content insets are specified; the bug I fixed was about how content insets were being conflated with obscuring insets. It's possible that the other content inset bug has an impact here, though. I retested this bug using my test project with some different results now. The original bug I described exists in iOS 11.2 and earlier. It appears to have been fixed in iOS 11.3 and 11.4. In iOS 12 beta 1, it is broken again, but in the opposite way of the original bug, it works correctly for `contentInsetAdjustmentBehavior = .automatic` and fails for `contentInsetAdjustmentBehavior = .never`. I updated my sample project and readme on GitHub (https://github.com/zachwaugh/wkwebview-bugs/tree/master/ScrollToContentInset) with this info. |