Made zoom/pan speed dependent on distance