01 September 2017 14:51
And the view is now related to the mouse movement, it works fine on Firefox
but it doesn't work on safari, any idea why?
This is because Safari (as well as IE and Opera) still doesn't support PointerLock API. We can only wait for them to add this feature.
Safari in practice, it does not work. But according to the official information says that from version 10.1 to 10.3, Yes, it should work.
Example from mozilla fundation: https://mdn.github.io/dom-examples/pointer-lock/