Zoom on macOS is centered around a point lower than the cursor
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Mar 2019 23:11:09 +0000 (23:11 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Mar 2019 23:11:09 +0000 (23:11 +0000)
commite0142521f3f577bb8094e5adefe984f89e67706e
treef95147723f63ac937eb5ee9dfd4d79176c2a55d3
parent22f416acda6f10176c952cbf7f450bc0f82c6212
Zoom on macOS is centered around a point lower than the cursor
https://bugs.webkit.org/show_bug.cgi?id=196225
rdar://problem/49213574

Reviewed by Tim Horton.

The origin handed to ViewGestureController::handleMagnificationGestureEvent is in WKWebView
coordinates, but we end up setting the transform on the RenderView's layer, so we need
to subtract the topContentInset.

* UIProcess/mac/ViewGestureControllerMac.mm:
(WebKit::ViewGestureController::handleMagnificationGestureEvent):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243468 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/mac/ViewGestureControllerMac.mm