Handle distance markers near top/bottom