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

fix: Fix wrong event type in onHover #4861

Merged
merged 8 commits into from
Nov 14, 2024
Merged

fix: Fix wrong event type in onHover #4861

merged 8 commits into from
Nov 14, 2024

Conversation

nilscognite
Copy link
Contributor

@nilscognite nilscognite commented Nov 12, 2024

Change from PointEvent to MouseEvent everywhere when hover

And update to "version": "4.21.1

@nilscognite nilscognite requested a review from a team as a code owner November 12, 2024 13:01
@nilscognite nilscognite changed the title fix: Fix wrong event type in onHover360Images fix: Fix wrong event type in onHover Nov 12, 2024
@@ -7,7 +7,7 @@
* @beta
*/
export class PointerEvents {
public onHover(_event: PointerEvent): void {}
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@pramodcog pramodcog left a 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

@nilscognite nilscognite merged commit 4be4ce6 into master Nov 14, 2024
14 checks passed
@nilscognite nilscognite deleted the np/reveal-hover branch November 14, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants