Bug 232805

Summary: Fix the CGEvent types used for wheel event generation from streams
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Tools / TestsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: sam, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=232794
Attachments:
Description Flags
Patch sam: review+

Description Simon Fraser (smfr) 2021-11-07 20:40:41 PST
Fix the CGEvent types used for wheel event generation from streams
Comment 1 Simon Fraser (smfr) 2021-11-07 20:43:54 PST
Created attachment 443524 [details]
Patch
Comment 2 Sam Weinig 2021-11-08 08:36:42 PST
Comment on attachment 443524 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=443524&action=review

> Tools/ChangeLog:10
> +        The set of enum values for wheel event types are confusing, and I used the wrong ones in
> +        r285390, so fix that. Values are all the same other than kCGMomentumScrollPhaseEnd which is
> +        now correct.

Is the end phase being different detectable?
Comment 3 Simon Fraser (smfr) 2021-11-08 09:27:32 PST
(In reply to Sam Weinig from comment #2)
> Comment on attachment 443524 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=443524&action=review
> 
> > Tools/ChangeLog:10
> > +        The set of enum values for wheel event types are confusing, and I used the wrong ones in
> > +        r285390, so fix that. Values are all the same other than kCGMomentumScrollPhaseEnd which is
> > +        now correct.
> 
> Is the end phase being different detectable?

I don't think it is currently. Since this is new test infrastructure I didn't try to make a regression test for that.
Comment 4 Simon Fraser (smfr) 2021-11-08 09:59:55 PST
https://trac.webkit.org/changeset/285409/webkit
Comment 5 Radar WebKit Bug Importer 2021-11-08 10:00:24 PST
<rdar://problem/85160514>