Add on_scroll behavior and allow line to change width.