main ← fix-poll-scroll-jump-on-toggle
opened 09:33PM - 17 Jun 26 UTC
Previously, clicking the button that toggles a large poll between its results an…d the ballot scroll-jumped the page far down — often to the bottom — leaving the poll off-screen and the vote seemingly impossible to amend (the browser's native scroll anchoring loses its anchor node when the toggle removes the results table the user is scrolled into).
This change pins the poll's button row and restores its viewport position with `window.scrollBy` after the swap, so the poll stays exactly where the user was looking when switching between results and voting.
Meta: https://meta.discourse.org/t/large-poll-bug-users-cannot-amend-votes-on-open-polls/405511