Prevent scrolling to clicked lines in Rapid Diffs

What does this MR do and why?

This MR removes scrolling when a diff line number is clicked.

Screenshots or screen recordings

Before After
Screen_Recording_2025-06-20_at_07.21.26 Screen_Recording_2025-06-20_at_07.18.39

How to set up and validate locally

  1. Enable rapid_diffs and rapid_diffs_on_mr_show
  2. Visit any merge request
  3. Select 'Changes' tab
  4. Add ?rapid_diffs=true to the URL, follow it
  5. Click on any diff line number
  6. Observe no scrolling

Merge request reports

Loading