Need Help with a Sphere Trace Issue

So this solves the issue of movement, however my main issue is rotation after the camera snap. If I hold a mouse button and drag (even after disable movement is called), my character still rotates (and the sphere trace origin along with it).