Bug 201496

Summary: MouseEvent.button should be 0 for mousemove events
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ap, cdumez, graouts, pvollan, 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=198679

Fujii Hironori
Reported 2019-09-05 00:08:04 PDT
MouseEvent.button should be 0 for mousemove events Spec: https://www.w3.org/TR/uievents/#dom-mouseevent-button > The value of button is not updated for events not caused by the > depression/release of a mouse button. In these scenarios, take > care not to interpret the value 0 as the left button, but rather > as the un-initialized value. test case 1: attachment 377952 [details] test case 2: https://jsfiddle.net/fujihiro/vy7hkpLw/10/embedded/result Firefox and Chrome set it 0 for mousemove events.
Attachments
Alexey Proskuryakov
Comment 1 2019-09-07 12:40:15 PDT
This seems to work in Safari. Is this a Windows port bug report?
Fujii Hironori
Comment 2 2019-09-08 20:55:19 PDT
This is a test procedure: 1. Open attachment 377952 [details] 2. Hold the mouse middle button pressing 3. Move the mouse button should be 0, but 1. I tested with Safari Technology Preview 91 and Safari 12.1.2.
Radar WebKit Bug Importer
Comment 3 2019-09-09 06:34:47 PDT
Note You need to log in before you can comment on or make changes to this bug.