Bug 234535

Summary: Momentum Event Dispatcher: Momentum tails may get truncated if the duration runs longer than the system's
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, darin, ews-watchlist, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description Tim Horton 2021-12-20 15:59:30 PST
Momentum Event Dispatcher: Momentum tails may get truncated if the duration runs longer than the system's
Comment 1 Tim Horton 2021-12-20 16:02:37 PST
Created attachment 447657 [details]
Patch
Comment 2 Tim Horton 2021-12-20 16:02:40 PST
<rdar://problem/86338105>
Comment 3 Simon Fraser (smfr) 2021-12-20 16:13:02 PST
Comment on attachment 447657 [details]
Patch

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

> Source/WebKit/Shared/mac/WebEventFactory.mm:414
> +    WallTime ioHIDEventWallTime = timestamp;

auto

> Source/WebKit/Shared/mac/WebEventFactory.mm:416
> +    WebWheelEvent::MomentumEndType momentumEndType = WebWheelEvent::MomentumEndType::Unknown;

auto
Comment 4 Tim Horton 2021-12-20 16:58:39 PST
Created attachment 447666 [details]
Patch
Comment 5 Tim Horton 2021-12-20 21:30:34 PST
Created attachment 447687 [details]
Patch
Comment 6 Tim Horton 2022-01-04 17:00:21 PST
Created attachment 448349 [details]
Patch
Comment 7 Tim Horton 2022-01-04 17:40:15 PST
Created attachment 448353 [details]
Patch
Comment 8 Darin Adler 2022-01-04 21:12:58 PST
Comment on attachment 448353 [details]
Patch

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

> Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.h:30
> -#define ENABLE_MOMENTUM_EVENT_DISPATCHER_TEMPORARY_LOGGING 0
> +#define ENABLE_MOMENTUM_EVENT_DISPATCHER_TEMPORARY_LOGGING 1

Was this checked in by accident?
Comment 9 Tim Horton 2022-01-04 22:10:23 PST
(In reply to Darin Adler from comment #8)
> Comment on attachment 448353 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=448353&action=review
> 
> > Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.h:30
> > -#define ENABLE_MOMENTUM_EVENT_DISPATCHER_TEMPORARY_LOGGING 0
> > +#define ENABLE_MOMENTUM_EVENT_DISPATCHER_TEMPORARY_LOGGING 1
> 
> Was this checked in by accident?

Good point, need to not accidentally revert r287578!
Comment 10 Tim Horton 2022-01-04 22:12:12 PST
Created attachment 448359 [details]
Patch
Comment 11 EWS 2022-01-05 11:30:53 PST
Committed r287641 (245745@main): <https://commits.webkit.org/245745@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 448359 [details].
Comment 12 Tim Horton 2022-01-05 13:58:47 PST
Build fix: https://trac.webkit.org/changeset/287651/webkit