material-components / material-components/material-components-android
[CollapsingToolbarLayout] A fling of the header then tap on the child scroll content causes jank!
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** Full description of issue here
A fling of the header then tap on the child scroll content causes jank!
This could be AppBarLayout s fault not CollapsingToolbarLayout**
Here is 3 examples: The problem is more obvious with a larger AppBarLayout
Material Components Catalog:
https://user-images.githubusercontent.com/31834244/157383875-0a9ad9d8-1ef5-42b3-836f-a1f2835071df.MOV
Instagram:
https://user-images.githubusercontent.com/31834244/157383935-afe15943-ac3f-4717-bc68-c26a808a24ec.MOV
My current project:
https://user-images.githubusercontent.com/31834244/157383979-ce4ed224-7c89-457f-a74c-819472849729.MOV
**Expected behavior:** Screenshots and/or description of expected behavior
Should act like a regular scroll
**Source code:** The code snippet which is causing this issue
**Minimal sample app repro:** Please consider attaching a minimal sample app that reproduces the issue. This will help narrow down the conditions required for reproducing the issue, and it will speed up the bug fix process. You may attach a zip file of the sample app or link to a GitHub repo that contains the sample app.
**Android API version:** Android API version here
**Material Library version:** Material Android Library version you are using here (e.g., 1.1.0-alpha07)
1.5.0
**Device:** Device on which the bug was encountered here
To help us triage faster, please check to make sure you are using the [latest version](https://github.com/material-components/material-components-android/releases) of the library.
We also happily accept [pull requests](https://github.com/material-components/material-components-android/pulls).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the fling-then-tap interaction in the Material Components Catalog, focusing on the CollapsingToolbarLayout and AppBarLayout combination described. Compare the behavior with the expected regular scroll and use the supplied videos and Material Library version 1.5.0 as reference; done means the jank is no longer observable after the interaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100