Bug 101800

Summary: Correct scroll adjustment for touchEvent.clientX/clientY
Product: WebKit Reporter: Tien-Ren Chen <trchen>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, aelias, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Tien-Ren Chen
Reported 2012-11-09 14:40:06 PST
Correct scroll adjustment for touchEvent.clientX/clientY
Attachments
Patch (4.65 KB, patch)
2012-11-09 14:42 PST, Tien-Ren Chen
no flags
Patch (4.62 KB, patch)
2012-11-09 15:05 PST, Tien-Ren Chen
no flags
Tien-Ren Chen
Comment 1 2012-11-09 14:42:53 PST
Adam Barth
Comment 2 2012-11-09 14:57:15 PST
Comment on attachment 173373 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173373&action=review > LayoutTests/fast/events/touch/touch-scaled-scrolled.html:17 > + if (window.internals) { > + window.internals.settings.setPageScaleFactor(2, 0, 0); > + } No need for { } here. > LayoutTests/fast/events/touch/touch-scaled-scrolled.html:30 > + window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); Why do we need to use setTimeout? Can't we call notifyDone from inside touched?
Tien-Ren Chen
Comment 3 2012-11-09 15:03:42 PST
(In reply to comment #2) > (From update of attachment 173373 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=173373&action=review > > > LayoutTests/fast/events/touch/touch-scaled-scrolled.html:17 > > + if (window.internals) { > > + window.internals.settings.setPageScaleFactor(2, 0, 0); > > + } > > No need for { } here. > > > LayoutTests/fast/events/touch/touch-scaled-scrolled.html:30 > > + window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); > > Why do we need to use setTimeout? Can't we call notifyDone from inside touched? Copy & paste from other test without much thoughts. Will fix the nits. :)
Tien-Ren Chen
Comment 4 2012-11-09 15:05:24 PST
WebKit Review Bot
Comment 5 2012-11-09 15:55:09 PST
Comment on attachment 173379 [details] Patch Clearing flags on attachment: 173379 Committed r134127: <http://trac.webkit.org/changeset/134127>
WebKit Review Bot
Comment 6 2012-11-09 15:55:12 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.