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

The PointerInfo provided in onPointerObservable has an undefined pointerType on MacOS Safari #15466

Closed
AmoebaChant opened this issue Aug 21, 2024 · 3 comments
Assignees
Milestone

Comments

@AmoebaChant
Copy link
Contributor

Repro

  • Bug repro on playground:
  • Expected result: In Safari, mousing over the scene should display "event.pointerType = mouse" in the UI
  • Current result: Only in Safari, it actually shows ".pointerType is missing"

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Safari

Additional context
It appears that Safari supports pointerType in the pointer* events, but Babylon currently wires up to the mouse* events for Safari which don't support that field. See GetPointerPrefix() in tools.ts.

@thomlucc thomlucc added this to the 8.0 milestone Aug 22, 2024
Copy link

This issue has been automatically staled because it has been inactive for more than 14 days. Please update to "unstale".

@github-actions github-actions bot added the stale label Sep 20, 2024
RolandCsibrei added a commit to RolandCsibrei/Babylon.js that referenced this issue Sep 29, 2024
@RolandCsibrei
Copy link
Contributor

I needed to fix this for my project so I created a PR: #15645
Sorry for hijacking.

AmoebaChant added a commit that referenced this issue Oct 1, 2024
@AmoebaChant
Copy link
Contributor Author

Thanks for the fix @RolandCsibrei!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants