Fix deselection and refactor scroll-to-feature.