add smooth panning
add smooth panning