Skip to content

Commit

Permalink
types: Add auxClick event types (#4672)
Browse files Browse the repository at this point in the history
* types: Add auxClick event types

* refactor: Switch to MouseEvent w/ a TODO
  • Loading branch information
rschristian authored Feb 16, 2025
1 parent face924 commit 34e9715
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,11 @@ export namespace JSXInternal {
onMouseOverCapture?: MouseEventHandler<Target> | undefined;
onMouseUp?: MouseEventHandler<Target> | undefined;
onMouseUpCapture?: MouseEventHandler<Target> | undefined;
// TODO: Spec for `auxclick` events was changed to make it a PointerEvent but only
// Chrome has support for it yet. When more browsers align we should change this.
// https://developer.mozilla.org/en-US/docs/Web/API/Element/auxclick_event#browser_compatibility
onAuxClick?: MouseEventHandler<Target> | undefined;
onAuxClickCapture?: MouseEventHandler<Target> | undefined;

// Selection Events
onSelect?: GenericEventHandler<Target> | undefined;
Expand Down

0 comments on commit 34e9715

Please sign in to comment.