Skip to content

Menu scrolls unexpectedly when selecting next/previous item #63

@mgiuffrida

Description

@mgiuffrida

Fiddle: https://jsfiddle.net/ntw6trbk/

  1. Focus any one of the 3 menus (tap "Item 0" or tap the dropdown trigger).
  2. 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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions