]> git.openstreetmap.org Git - rails.git/commit
Reset sidebar scroll position on map pan in place history
authorAnton Khorev <tony29@yandex.ru>
Wed, 2 Apr 2025 03:33:59 +0000 (06:33 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 2 Apr 2025 05:03:00 +0000 (08:03 +0300)
commit5dd68bf90046a1044f0c11520d84a68a9ff8e29a
tree3f450b5096709544438b74a4f6ecca2b7c8b979e
parent2f0181e327a004afa21df57d85a766679be128db
Reset sidebar scroll position on map pan in place history

Otherwise the user may not notice that the list was completely reloaded. Also it makes sense to start looking at the top of the reloaded list. Without resetting the scroll position, the bottom is likely to be shown if the user went on to browse the list and pressed "Load more" a few times.
app/assets/javascripts/index/history.js