Fixed inverted pointer lock logic causing buttons to show/hide in wrong order