add smooth panning