-
Notifications
You must be signed in to change notification settings - Fork 258
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
Table is scrolling before selected row reaches the top #428
Comments
I have done a little digging on this issue. It looks like the problem is in the bubbles package on the move-up command. Upon investigation it looks like the error is in the MoveUp function. The following code fixes the issue.
|
Just as a note, #363 reports a similar problem but when scrolling down. I don't know if it is the same bug behind the scene, so just in case... |
Thanks for the heads up! I'll take a look at this tomorrow. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a copy of an issue created on bubbletea.
"Here is a code sample that uses the table component.
Something I noticed is that when I press the down arrow key, going
from the first item to the last, everything works as expected.
Going in the reverse direction, that is, going from the last item
to the first one (via up arrow) the viewport is scrolled down
before the selected line matches the top of the viewport. Check
the animated gif on the entry labeled as Poland.
What can be done so that going from the first item to last item
and the opposite way (last to first) behaves exactly the same way?"
The text was updated successfully, but these errors were encountered: