Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cdk/scrolling): content jumping in appendOnly mode #25097

Merged
merged 1 commit into from
Jun 18, 2022

Conversation

crisbeto
Copy link
Member

We were creating the transform string before adjusting the offset for appendOnly mode which was causing the list to jump down before being reset on the next scroll event.

These changes resolve the issue by moving the offset adjustment up to before the transform.

Fixes #25077.

We were creating the `transform` string before adjusting the offset for `appendOnly` mode which was causing the list to jump down before being reset on the next scroll event.

These changes resolve the issue by moving the offset adjustment up to before the `transform`.

Fixes angular#25077.
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release labels Jun 17, 2022
@crisbeto crisbeto requested a review from andrewseguin as a code owner June 17, 2022 07:01
@crisbeto crisbeto requested a review from mmalerba June 17, 2022 11:34
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jun 18, 2022
@crisbeto crisbeto merged commit f6bcbb1 into angular:main Jun 18, 2022
crisbeto added a commit that referenced this pull request Jun 18, 2022
We were creating the `transform` string before adjusting the offset for `appendOnly` mode which was causing the list to jump down before being reset on the next scroll event.

These changes resolve the issue by moving the offset adjustment up to before the `transform`.

Fixes #25077.

(cherry picked from commit f6bcbb1)
crapStone pushed a commit to Calciumdibromid/CaBr2 that referenced this pull request Jun 28, 2022
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@angular/cdk](https://github.com/angular/components) | dependencies | patch | [`14.0.2` -> `14.0.3`](https://renovatebot.com/diffs/npm/@angular%2fcdk/14.0.2/14.0.3) |
| [@angular/material](https://github.com/angular/components) | dependencies | patch | [`14.0.2` -> `14.0.3`](https://renovatebot.com/diffs/npm/@angular%2fmaterial/14.0.2/14.0.3) |

---

### Release Notes

<details>
<summary>angular/components</summary>

### [`v14.0.3`](https://github.com/angular/components/blob/HEAD/CHANGELOG.md#&#8203;1403-diamond-orb-2022-06-23)

[Compare Source](angular/components@14.0.2...14.0.3)

##### cdk

| Commit | Type | Description |
| -- | -- | -- |
| [2ad1677c7](angular/components@2ad1677) | fix | **scrolling:** content jumping in appendOnly mode ([#&#8203;25097](angular/components#25097)) |

##### material

| Commit | Type | Description |
| -- | -- | -- |
| [8d5882cf1](angular/components@8d5882c) | fix | **button-toggle:** selected state not visible in high contrast mode ([#&#8203;25114](angular/components#25114)) |
| [8df5efe08](angular/components@8df5efe) | fix | **datepicker:** actions not re-rendering if swapped out while calendar is open ([#&#8203;25123](angular/components#25123)) |

#### Special Thanks

Kristiyan Kostadinov, Paul Gschwendtner and renovate\[bot]

<!-- CHANGELOG SPLIT MARKER -->

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Co-authored-by: cabr2-bot <cabr2.help@gmail.com>
Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1432
Reviewed-by: Epsilon_02 <epsilon_02@noreply.codeberg.org>
Co-authored-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
Co-committed-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(VIRTUAL-SCROLL): In append only mode, when scrolling fast, list is jumping to start
2 participants