Ask coding questions

← Back to all posts
requestPointerLock invalidity (HTML/JS/CSS)
Yimmee (10)

what is this?
Uncaught (in promise) DOMException: The root document of this element is not valid for pointer lock.
I think I got it when I was trying to do this on the body, but now I have no idea what this means.
the element I was calling requestPointerLock on was a div, inside the body. I don't know what else to tell you but please help me.