Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

Mouse Lock broken in HTML5/Javascript

  • OS : Windows 10
    Version : 62.0.3331.68
    Page : https://mdn.github.io/dom-examples/pointer-lock/ and any other site that uses the mouse lock function.
    Video Example : https://www.youtube.com/watch?v=3c7YxUoqSfY
    Problem : Lately most HTML5/Javascript webapps have not been working as they should. My mouse pointer jumps all over the place when trying to use them. I suspect this has something to do with a lot of them being 3D and requiring the mouse lock command to use the camera freely without your mouse flying off the edge of the screen. What it basically does is move your mouse from one side of the screen to another when you reach the edge, that way you can look in circles forever.
    I assume when the mouse reaches the edge for some reason it's jumping ahead a little creating that effect. I can't seem to solve it for the life of me however, and it doesn't happen on any other of my computers, but they only run linux so I don't know if it has to do with the OS. I've tried messing with my mouse settings, extensions, ad blocker, clearing all settings, etc. Nothing works.

  • @acmckibben87 The problem still happens with Opera 63?

  • @leocg Yes, it seems it does.