don't do panning logic if it is impossible to pan.