bevacqua/horsey

Scrollbox or keep item in view?

lw1990 opened this issue · 4 comments

Can you extra pretty please add an option for a scrollbox for extra long lists of matches?
Using keyboard navigation you can currently navigate very long lists off screen which is not very good
An alternative (maybe better) option would be just keeping the currently selected item in view - without a scrollbar, somehow

+1. I have to heavily filter and limit the suggestions to a very small number otherwise most people think there just aren’t any suggestions past what’s shown on the screen.

Here’s a hacky solution: calculate a new max-height for the suggestions list every time it’s shown.

This is tricky. Scrolling should be possible, but it's not the best UX.

I have added an option scrollToSelectedItem for this behavior: unic@a15ad43
If it works fine in a current project, I will add an example and open a pull-request.