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

[Bug] pointer lock not working on Safari #2994

Open
FezVrasta opened this issue Jan 22, 2024 · 2 comments
Open

[Bug] pointer lock not working on Safari #2994

FezVrasta opened this issue Jan 22, 2024 · 2 comments
Labels
module: interactor type: bug 🐞 Errors in functionality type: feature request 💡 Desired capabilities / enhancements

Comments

@FezVrasta
Copy link
Contributor

Bug description

Hi, the pointer lock functionality doesn't seem to work on Safari. The API is supported, but it looks like it requires to be directly called from a user-interaction event in order to work. If you try to call it in any other way it will be blocked, not unlike how popup works.

Steps to reproduce

  1. Try to use the pointer lock option on Safari 17.2.1 on macOS.

Detailed Behavior

No response

Expected Behavior

Pointer is not locked

Environment

  • vtk.js version: v29.4.2
  • Browsers: Safari 17.2.1
  • OS: macOS Sonoma 14.2.1
@FezVrasta FezVrasta added the type: bug 🐞 Errors in functionality label Jan 22, 2024
@finetjul finetjul added type: feature request 💡 Desired capabilities / enhancements module: interactor labels Jan 22, 2024
@floryst
Copy link
Collaborator

floryst commented Jan 23, 2024

The API is supported, but it looks like it requires to be directly called from a user-interaction event in order to work.

This sounds like something we can't control, other than adding documentation to ensure that entering pointer lock is run in a user event-sourced task.

@FezVrasta
Copy link
Contributor Author

This is not working even when triggered by the click and drag scroll adapter though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: interactor type: bug 🐞 Errors in functionality type: feature request 💡 Desired capabilities / enhancements
Projects
None yet
Development

No branches or pull requests

3 participants