Fix panning.