Bug 101800 - Correct scroll adjustment for touchEvent.clientX/clientY
Summary: Correct scroll adjustment for touchEvent.clientX/clientY
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-09 14:40 PST by Tien-Ren Chen
Modified: 2012-11-09 15:55 PST (History)
3 users (show)

See Also:


Attachments
Patch (4.65 KB, patch)
2012-11-09 14:42 PST, Tien-Ren Chen
no flags Details | Formatted Diff | Diff
Patch (4.62 KB, patch)
2012-11-09 15:05 PST, Tien-Ren Chen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tien-Ren Chen 2012-11-09 14:40:06 PST
Correct scroll adjustment for touchEvent.clientX/clientY
Comment 1 Tien-Ren Chen 2012-11-09 14:42:53 PST
Created attachment 173373 [details]
Patch
Comment 2 Adam Barth 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?
Comment 3 Tien-Ren Chen 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. :)
Comment 4 Tien-Ren Chen 2012-11-09 15:05:24 PST
Created attachment 173379 [details]
Patch
Comment 5 WebKit Review Bot 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>
Comment 6 WebKit Review Bot 2012-11-09 15:55:12 PST
All reviewed patches have been landed.  Closing bug.