Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

autocomplete: delay in rendering items when scrolling quickly via mouse wheel or touch #11283

Open
@rreitmann

Description

@rreitmann

When you scroll down the virtual-repeat-container of an autocomplete by using the mousewheel or slide fast up or down on a touch device you see the items in the virtual-repeat-container are rearranged a short time after the scrolling stopped. The "short time" is bigger on mobile devices so that the users click on the wrong entry.

Steps to reproduce the issue:

Go to https://material.angularjs.org/1.1.9/demo/autocomplete#basic-usage and focus the first autocomplete. Move the mouse over the list of states and scroll down fast with the mousewheel or swipe down fast. You should see that the displayed states are changed a short while after the scrolling stopped. This does not happen when you scroll the list by dragging the scroll bar.

In our app this can be seen here:
Go to https://metadatamanagement-dev.cfapps.io/#!/en/search?page=1&type=data_sets&variable=var-gra2005-ds1-pid$ and clear the autocomplete (variable filter). Scrolling up and down the list with the mouse wheel demonstrates the behavior.

The code for that app can be found here:
https://github.com/dzhw/metadatamanagement

What is the expected behavior?

There should be no difference to dragging the scroll bar. A short delay for updating the virtual-repeat-container which is visible to the user confuses the users.

Which versions of AngularJS, Material, OS, and browsers are affected?

  • AngularJS: 1.7.0
  • AngularJS Material: 1.1.9
  • OS: Ubuntu, Android
  • Browsers: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    BlockedProgress on this issue is blocked. Primarily used for PRs that are blocked by presubmit feedback.P4: minorMinor issues. May not be fixed without community contributions.browser: Androidbrowser: Chrometype: performanceThis issue is related to performance

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions