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.
MouseEventInitfield 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 correspondingMouseEventattribute 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
WheelEventInitfields.I am proposing to drop these descriptions , and replace them with a few lines similar to what we have for
PointerEventInit.