Richie
(Richie Rich)
7 يوليو 2023، 6:55ص
1
Updated to 3.1.0.beta5 (3ea8203719 ) today.
Immediately noticed that when on /latest
and scrolling down the list of topics, clicking on the logo at the top left no longer takes me back to the top of the page
Instead, it now just appears to reload the page at your current scroll point.
إعجابَين (2)
Richie
(Richie Rich)
7 يوليو 2023، 7:18ص
2
Sorry, forgot to add, Safari on iOS 16.5.1
إعجاب واحد (1)
Richie
(Richie Rich)
7 يوليو 2023، 8:39ص
6
I can also replicate on Windows desktop with Firefox 114.x
Again, this only occurs on the /latest
page, when you’ve scrolled down a bit.
إعجابَين (2)
david
(David Taylor)
12 يوليو 2023، 12:18م
10
I have a fix in-progress for this:
discourse:main
← discourse:scroll-manager
opened 07:43PM - 11 Jul 23 UTC
Previously we were implementing scroll reset/memorization on a per-page basis. M… any of these approaches relied on the `didInsertElement` hook, which is no longer appropriate since Discourse changed to use the 'loading slider' strategy for page transitions.
This commit rips out all of our custom scroll resetting/memorizing, and implements those things in a generic service. There are two features:
1. After every route transition, scroll to the top of the page
2. When using browser back/forward buttons, restore the last known scroll position for those routes
I’ll update here once it’s merged
Edit: branch is now deployed to Meta for testing
7 إعجابات
Richie
(Richie Rich)
12 يوليو 2023، 7:23م
11
Tests passed here on meta, thanks for the bug fix @David
3 إعجابات
david
(David Taylor)
تم إغلاقه في
14 يوليو 2023، 7:00ص
13
This topic was automatically closed after 17 hours. New replies are no longer allowed.