-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
When navigating by keyboard, the focused option is scrolled into view.
But for some reason it scrolls a little bit extra, causing the items in the menu to be offset from the top or bottom menu's bounds.
I guess it is an aesthetical decision, but it's a strange default - in many designs a menu's height is some multiple of the options' heights, so that the options don't get cut off in the middle.
In any case I think it should be up to the user to set the amount of overscroll, for my use case I just set the overScroll variable inside the scrollIntoView function to 0.
Another feature that would solve a similar problem is a setting to force the onwheel scroll to jump in integer multiples of option heights.
Metadata
Metadata
Assignees
Labels
No labels