[Webkit-unassigned] [Bug 165119] Add coordinate space to event streams and streamline tests
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Dec 15 16:15:51 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=165119
--- Comment #8 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
Comment on attachment 297219
--> https://bugs.webkit.org/attachment.cgi?id=297219
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=297219&action=review
> Tools/WebKitTestRunner/ios/UIScriptControllerIOS.mm:215
> + if (event[HIDEventTouchesKey]) {
> + for (NSMutableDictionary *touch in event[HIDEventTouchesKey]) {
> + auto location = globalToContentCoordinates(TestController::singleton().mainWebView()->platformView(), (long)[touch[HIDEventXKey] doubleValue], (long)[touch[HIDEventYKey]doubleValue]);
> + touch[HIDEventXKey] = @(location.x);
> + touch[HIDEventYKey] = @(location.y);
> + }
> + }
If a test triggers a scroll in the middle, won't the subsequent content-relative locations be offset?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161216/3dcc0291/attachment.html>
More information about the webkit-unassigned
mailing list