Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-13245

Add Release recordings page automatically scrolls upward while clicking radio buttons

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Release editor
    • None

      The Add Release page's Recordings tab sometimes scrolls upward when clicking a recording radio button while scrolled to the bottom of the page.

      1. Go to /release/add?release-group=0da580f2-6768-498f-af9d-2becaddf15e0.
      2. Go to the Tracklist tab and add a track with the title "Fight Fire With Fire" and length 4:45.
      3. Go to the Recordings tab and click the track's "Edit" button.
      4. Scroll to the very end of the long recording list. (Make sure that your window is short enough to have a scrollbar.)
      5. Click the last recording's radio button.
      6. Click the second-to-last recording's radio button.

      After step 6 (and possibly when clicking additional radio buttons while scrolled to the bottom of the page), the scroll position jumps upward by ~30 pixels.

      From playing around with ResizeObserver, I suspect that the document height is (temporarily?) shrinking in some cases, resulting in the browser automatically scrolling upward (since the viewport can't extend beyond the bottom of the document).

      This seems pretty minor since it only seems to happen when you have a small window and are scrolled to the bottom of the page, but I figured I'd file an issue since it's tangential to other recording-list issues that I've been looking at.

            Unassigned Unassigned
            derat derat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package