Added support for camera panning