# project_panel: Add Sticky Scroll \(\#33994\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6efc5ecefe98487b7ede1f35536b7710b831c251)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6efc5ecefe98487b7ede1f35536b7710b831c251

Requested commit: 6efc5ecefe98487b7ede1f35536b7710b831c251

Commit: 6efc5ecefe98487b7ede1f35536b7710b831c251

Tree: 7f42bd626596c7845ac8d4b33b6c2759d34f2ebe

Author: Smit Barmase

Committer: GitHub

## Message

```
project_panel: Add Sticky Scroll (#33994)

Closes #7243

- Adds `top_slot_items` to `uniform_list` component to offset list
items.
- Adds `ToPosition` scroll strategy to `uniform_list` to scroll list to
specified index.
- Adds `sticky_items` component which can be used along with
`uniform_list` to add sticky functionality to any view that implements
uniform list.


https://github.com/user-attachments/assets/eb508fa4-167e-4595-911b-52651537284c

Release Notes:

- Added sticky scroll to the project panel, which keeps parent
directories visible while scrolling. This feature is enabled by default.
To disable it, toggle `sticky_scroll` in settings.
```

## Parents

- [2246b01c4b6504966542bf92a49805fd6bf46772](https://git.cafe/gitcafe/zed/commit/2246b01c4b6504966542bf92a49805fd6bf46772?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6efc5ecefe98487b7ede1f35536b7710b831c251?format=markdown)
