modrinth / code

The Modrinth monorepo containing all code which powers Modrinth!
https://modrinth.com
Other
921 stars 171 forks source link

Scroll amount stays the same when going to a versions page from version list #1815

Closed Ember-ruby closed 1 year ago

Ember-ruby commented 2 years ago

Environment

No response

Describe the bug

after scrolling down in the versions menu for a mod, it'll keep that scroll when selecting a version, when ideally it should go to the top of the versions page but remember the scroll amount when pressing "back to list"

Steps To Reproduce

go to https://modrinth.com/mod/iris/version scroll down some amount click on a version, it'll have the same scroll scroll on that versions page go back, it'll have the same scroll

Expected behavior

when going to a version it should reset the scroll but return to your position if you click back to list

Additional context

Example;

https://user-images.githubusercontent.com/48266942/187236562-ce43e0a5-1343-49c7-bda2-aedefbaa0b3c.mp4

triphora commented 1 year ago

Fixed in modrinth/knossos#933