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

Implement scroll_lookahead and scroll_size params #494

Open
infokiller opened this issue Mar 21, 2023 · 0 comments
Open

Implement scroll_lookahead and scroll_size params #494

infokiller opened this issue Mar 21, 2023 · 0 comments

Comments

@infokiller
Copy link
Owner

See below for context, and also the following which should be solved:

Why do you prefer the behavior you suggested?
is it because you want to see the next results without having to navigate to them?
is it because the viewport moving is disturbing you?

Anyway, I think this can possibly be solved by adding two options:

  1. scroll_lookahead- an integer specifying the number of results to "look ahead" when navigating. For example, if this option is set to 0 you will get the behavior in 0.3.2 where you will see the selected result at the bottom of the page (after navigating down enough). If this option is set to 1, the scrolling will begin when the selected result is the one before the bottom.
  2. scroll_size- an integer specifying the number of results to scroll when needing to scroll because of a navigation to a result outside the viewport.

Originally posted by @infokiller in #35 (comment)

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

No branches or pull requests

1 participant