Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Page acts as zoomed even when it is not on visionOS.
https://bugs.webkit.org/show_bug.cgi?id=258991 rdar://111176298 Reviewed by Wenson Hsieh. visionOS is at a constant scale factor, and scales coming from WebCore need to be compared with WebKit::scalesAreEssentiallyEqual, not traditional comparison operators because WebCore stores the page scale factor as float instead of double. When we get a scale from WebCore, we need to ignore differences that are within a small rounding error, with enough leeway to handle rounding differences that may result from round-tripping through UIScrollView. * Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm: (-[WKWebView _updateScrollViewForTransaction:]): Canonical link: https://commits.webkit.org/265864@main
- Loading branch information