-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix: Fix wrong event type in onHover #4861
Conversation
@@ -7,7 +7,7 @@ | |||
* @beta | |||
*/ | |||
export class PointerEvents { | |||
public onHover(_event: PointerEvent): void {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why Hover event is changed to MouseEvent
?
PointerEvent
basically inherits MouseEvent
, if MouseEvent
is used than Touch/Pen will not work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know. But hover is never used on Touch. The position of your finders are unknown anyway. So I wanted to synchronize it. sometimes it uses Mouse and sometime Pointer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will update the API doc when you have approved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Can you make sure API docs are updated as well
Change from PointEvent to MouseEvent everywhere when hover
And update to "version": "4.21.1