Skip to content

gpui: Fix list scroll events being reverted by pending scroll - #59002

Merged
Anthony-Eid merged 1 commit into
mainfrom
fix-list-scroll-revert
Jun 11, 2026
Merged

gpui: Fix list scroll events being reverted by pending scroll#59002
Anthony-Eid merged 1 commit into
mainfrom
fix-list-scroll-revert

Conversation

@Anthony-Eid

Copy link
Copy Markdown
Contributor

This PR fixes some cases where scrolling is choppy due to a user inputting a scroll event while a list state is going through a remeasure. Currently, the list state would ignore the user's scroll and fall back to the pending scroll position, this PR fixes this by rebasing the pending scroll onto the user's new scroll position.

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content adheres to Zed's UI standards (UX/UI and icon guidelines)
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • agent_panel: Improve scroll smoothness while a response is streaming

This PR fixes some cases where scrolling is choppy due to a user
inputting a scroll event while a list state is going through a
remeasure. Currently, the list state would ignore the user's scroll and
fall back to the pending scroll position, this PR fixes this by rebasing
the pending scroll onto the user's new scroll position.
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 10, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jun 10, 2026
@Anthony-Eid
Anthony-Eid added this pull request to the merge queue Jun 11, 2026
Merged via the queue into main with commit 7fd5ea4 Jun 11, 2026
42 checks passed
@Anthony-Eid
Anthony-Eid deleted the fix-list-scroll-revert branch June 11, 2026 04:18
This was referenced Jun 18, 2026
Sipaha added a commit to Sipaha/spk-editor that referenced this pull request Jun 24, 2026
…ter)

Records this session's four shipped commits, the intentionally-uncommitted
spk_scroll temp in list.rs, and points at the (gitignored, local-only) re-fork
+ sawe-rebrand plan for the next fresh-context session. Also captures the
upstream scroll-fix findings (zed-industries#59002 / zed-industries#53378) and the two smaller pending
items (panel-layout persistence, scroll-jump).
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
…dustries#59002)

This PR fixes some cases where scrolling is choppy due to a user
inputting a scroll event while a list state is going through a
remeasure. Currently, the list state would ignore the user's scroll and
fall back to the pending scroll position, this PR fixes this by rebasing
the pending scroll onto the user's new scroll position.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- agent_panel: Improve scroll smoothness while a response is streaming
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…dustries#59002)

This PR fixes some cases where scrolling is choppy due to a user
inputting a scroll event while a list state is going through a
remeasure. Currently, the list state would ignore the user's scroll and
fall back to the pending scroll position, this PR fixes this by rebasing
the pending scroll onto the user's new scroll position.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- agent_panel: Improve scroll smoothness while a response is streaming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants