Skip to content

Editorial: MouseEventInit and WheelEventInit field descriptions feel redundant #646

@mustaqahmed

Description

@mustaqahmed

MouseEventInit field descriptions essentially say "this field initializes the corresponding event attribute" which is not very accurate because setting a field value doesn't automatically set an event attribute. Other than that, the description mostly match the corresponding MouseEvent attribute description and add some notes which seem like obvious JS facts (like { buttons: 2 | 4 } and { buttons: 6 } are equivalent).

We have the same problem with WheelEventInit fields.

I am proposing to drop these descriptions , and replace them with a few lines similar to what we have for PointerEventInit.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions