(payload)
| 377 | */ |
| 378 | |
| 379 | export function mousedown(payload) { |
| 380 | // The value of 'button' and 'buttons' for 'mousedown' must not be none. |
| 381 | const button = |
| 382 | payload == null || payload.button === buttonType.none |
| 383 | ? buttonType.primary |
| 384 | : payload.button; |
| 385 | const buttons = |
| 386 | payload == null || payload.buttons === buttonsType.none |
| 387 | ? buttonsType.primary |
| 388 | : payload.buttons; |
| 389 | return createMouseEvent('mousedown', { |
| 390 | ...payload, |
| 391 | button, |
| 392 | buttons, |
| 393 | }); |
| 394 | } |
| 395 | |
| 396 | export function mouseenter(payload) { |
| 397 | return createMouseEvent('mouseenter', payload); |
nothing calls this directly
no test coverage detected