Make horizontal camera movement work correctly