Be more precise about not calling scrollIntoView when not needed.