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

Need an option for turbo_reset_scroll_tag that goes to bottom for long lists / continuous scrolling #662

Open
nhorton opened this issue Aug 12, 2024 · 0 comments

Comments

@nhorton
Copy link

nhorton commented Aug 12, 2024

def turbo_refresh_scroll_tag(scroll = :reset)
has options to reset to the top-left or preserve the current scroll position which appears to be defined as an offset from the top of the page.

We have a scenario that does not seem to rare where there is a conversation being viewed in a page, and as new messages appear, we want them to be visible. Thus we would like to either refresh with scroll preserve acting as an offset from the bottom instead of top, or to just scroll to the bottom. We might be able to contribute such an option if you wanted to comment on preferred implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant