Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX: Timeline should jump to the bottom of the post in single-post topics #10503

Merged
merged 1 commit into from Aug 25, 2020
Merged

UX: Timeline should jump to the bottom of the post in single-post topics #10503

merged 1 commit into from Aug 25, 2020

Conversation

hnb-ku
Copy link
Contributor

@hnb-ku hnb-ku commented Aug 21, 2020

Context: https://meta.discourse.org/t/scroll-to-bottom-of-a-topic-with-1-post/161173

Clicking the latest date or dragging the timeline scroller to the bottom in topics with a single lengthy post takes you to the top of that post - even if you're already there.

This PR attempts to address this issue.

The desired result is that topics with a single lengthy post have a slightly different behaviour. When you click on the latest date (or drag the timeline scroller to the very bottom) you should be taken to the bottom of that post.
This is what this PR does.

I've tested this in a number of different scenarios and I haven't seen any regressions in terms of the current functionality. Again, this only affects topics with a single lengthy post.

@hnb-ku hnb-ku requested a review from jjaffeux August 21, 2020 08:05
Copy link
Contributor

@eviltrout eviltrout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems cool to me and something I've definitely wanted before.

@hnb-ku hnb-ku marked this pull request as ready for review August 25, 2020 08:14
@hnb-ku hnb-ku merged commit 66aa94c into discourse:master Aug 25, 2020
@hnb-ku hnb-ku removed the request for review from jjaffeux August 25, 2020 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants