Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

click event's interface should be changed to PointerEvent #60746

Open
mozesstumpf opened this issue Dec 12, 2024 · 2 comments
Open

click event's interface should be changed to PointerEvent #60746

mozesstumpf opened this issue Dec 12, 2024 · 2 comments
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this
Milestone

Comments

@mozesstumpf
Copy link

⚙ Compilation target

esnext

⚙ Library

Missing / Incorrect Definition

In the GlobalEventHandlersEventMap interface the field "click: MouseEvent" should be changed to "click": PointerEvent

Sample Code

-

Documentation Link

https://w3c.github.io/uievents/#event-type-click

@nmain
Copy link

nmain commented Dec 12, 2024

According to https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event, this seems to be Chrome only, at least for now.

@mozesstumpf
Copy link
Author

According to https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event, this seems to be Chrome only, at least for now.

MDN hasn't been updated yet, but both Webkit and Gecko already support the PointerEvent.

@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this labels Dec 13, 2024
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

3 participants