Timeline gets stuck when going to last/first post

AI-generated summary

A user, Hector, reported an issue where the timeline gets stuck when navigating to the first or last post in a topic. This problem occurs in multiple browsers and can be reproduced by entering a topic, clicking on the bottom of the timeline to go to the last post, and then clicking on the top of the timeline to go to the first post. Hector provided a video demonstrating the issue and a step-by-step repro.

codinghorror asked for a more precise repro, and Hector provided additional details. Falco suggested that the issue might be related to the “cloak size” and provided a repro.

codinghorout assigned the issue to eviltrout, who fixed the problem and committed the changes to GitHub: https://github.com/discourse/discourse/commit/1a02f5154fc1d479524e32928f421ebd19b46f6b

On some topics the timeline seems to get stuck when clicking to go to the last post or the first post. The indicator doesn’t update. I’m on Windows 7 and it happens in Chrome, Firefox and IE 11.

1 « J'aime »

Can you give a more precise repro using topics on try.discourse.org please?

It happens all the time here on meta. Enter on any topic you haven’t visited yet. Click the bottom of the timeline to go to the las post, you move to the last post but the indicator in the timeline stays at the top. Scroll a little and the indicator updates. Click the top of the timeline, you are taken to the top but again the indicator doesn’t update.

Perhaps a video helps:

5 « J'aime »

Oh I see you must go more than the cloak size for it to trigger (20 posts).

Repro:

  1. Go to the end of a long topic
  2. Click timeline top area to scroll to first.
3 « J'aime »

OK, since we have a good repro @eviltrout can you have a look?

Thanks, I’m really happy to fix this one. I’d seen it a few times but then thought I was crazy because I couldn’t reproduce it.

https://github.com/discourse/discourse/commit/1a02f5154fc1d479524e32928f421ebd19b46f6b

4 « J'aime »

This topic was automatically closed after 30 hours. New replies are no longer allowed.