Made panning smoother.