Bug 219384

Summary: [WK1] Only the first wheel event in a gesture should be cancelable
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: ScrollingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 218764    
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch
none
Patch cdumez: review+, ews-feeder: commit-queue-

Description Simon Fraser (smfr) 2020-11-30 21:14:40 PST
[WK1] Only the first wheel event in a gesture should be cancelable
Comment 1 Simon Fraser (smfr) 2020-11-30 21:18:50 PST
Created attachment 415095 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2020-11-30 21:19:21 PST
<rdar://problem/71836485>
Comment 3 Simon Fraser (smfr) 2020-11-30 21:28:35 PST
Created attachment 415096 [details]
Patch
Comment 4 Simon Fraser (smfr) 2020-11-30 22:55:10 PST
Created attachment 415100 [details]
Patch
Comment 5 Chris Dumez 2020-12-01 09:52:09 PST
Comment on attachment 415100 [details]
Patch

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

> LayoutTests/fast/events/wheel/first-wheel-event-cancelable.html:44
> +            debug('Tests preventDefault on the first event results in the rest of the events being cancelable')

description() would likely look better than debug().

> LayoutTests/fast/events/wheel/wheel-events-become-non-cancelable.html:55
> +            debug('Tests that events in the gesture are non-cancelable if preventDefault was not called on the first event');

ditto.
Comment 6 Simon Fraser (smfr) 2020-12-01 10:02:17 PST
https://trac.webkit.org/r270312