It was moved because earlier, pointer lock was only being set/configured if full screen was entered (note that it was taken out from an if fullscreenElement = canvas block).  I wanted the ability to have pointer lock without fullscreen, hence this.  However, this might not actually be the full commit.. I may have screwed something up when splitting things into branches.