<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Add coordinate space to event streams and streamline tests"
href="https://bugs.webkit.org/show_bug.cgi?id=165119#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Add coordinate space to event streams and streamline tests"
href="https://bugs.webkit.org/show_bug.cgi?id=165119">bug 165119</a>
from <span class="vcard"><a class="email" href="mailto:simon.fraser@apple.com" title="Simon Fraser (smfr) <simon.fraser@apple.com>"> <span class="fn">Simon Fraser (smfr)</span></a>
</span></b>
<pre>Comment on <span class=""><a href="attachment.cgi?id=297219&action=diff" name="attach_297219" title="Patch">attachment 297219</a> <a href="attachment.cgi?id=297219&action=edit" title="Patch">[details]</a></span>
Patch
View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=297219&action=review">https://bugs.webkit.org/attachment.cgi?id=297219&action=review</a>
<span class="quote">> 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);
> + }
> + }</span >
If a test triggers a scroll in the middle, won't the subsequent content-relative locations be offset?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>