# gpui: Add is_scrollbar_dragging\(\) accessor to ListState \(\#53380\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 51b43c90f9c733c479071b240c489daadea8c68c

Requested commit: 51b43c90f9c733c479071b240c489daadea8c68c

Commit: 51b43c90f9c733c479071b240c489daadea8c68c

Tree: 0f1605c4b0c5f54ca9f8ab8e086d87ddac070cdc

Author: KlausUllrich

Committer: GitHub

## Message

```
gpui: Add is_scrollbar_dragging() accessor to ListState (#53380)

## Summary

Expose whether the scrollbar is currently being dragged via a new
`is_scrollbar_dragging()` method on `ListState`.

This returns `true` between `scrollbar_drag_started()` and
`scrollbar_drag_ended()` calls. It lets consumers distinguish scrollbar
drags from wheel/trackpad scrolls, which is useful for suppressing
auto-scroll or follow-tail behavior during manual scrollbar positioning.

## Test plan

- [x] Code review — one-liner accessor, delegates to existing
`scrollbar_drag_start_height` field
- [ ] Verify compilation with `cargo check -p gpui`

Release Notes:

- N/A

🤖 Generated with [Claude Code](https://claude.com/claude-code)
```

## Parents

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

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