Menu scrolls unexpectedly when selecting next/previous item
Fiddle: https://jsfiddle.net/ntw6trbk/
- Focus any one of the 3 menus (tap "Item 0" or tap the dropdown trigger).
- Press the down arrow 5 or so times.
Expected
Once the selection is at the bottom of the visible menu container, Down should scroll the menu down by one, so the selection is always at the bottom. (select)
Actual
Every 5 or so element, the menu scroll position jumps so the selected item is in the middle of the visible menu container instead of the bottom. (paper-menu, paper-listbox)
This is particularly disorienting when the list wraps, because it's not immediately obvious that it isn't just continuing the "move downward, scroll upward" behavior.
Also repros with the down arrow (selection should always be at the top, but the menu scrolls up occasionally).
It seems like this is a result of the default focus behavior: http://output.jsbin.com/duzipo
scrollIntoView seems like it would help here. The general lack of scrollIntoViewOptions support is lame though.