[improvement request] when clicking a link, do not "scrollto" if the linked outline is already visible

when clicking a link, do not “scrollto” if the referred outline is already visible in the viewport;
just highlight the referred outline without scrolling