Collapsing file in diffs tab causes unexpected scrolling

Whenever you click a collapse button in diffs tab in a merge request you will be scrolled to the file next to the one you just collapsed.

This scrolling is unexpected and distracting, and should probably be removed.

Video demonstration

Screen_Recording_2022-04-21_at_22.34.03