Fixed restricting panning.