update distance in partial when distance changed.
transition when switching to list.