# Avoid assigning NSCursor style when it already is that style \(\#2632\) · gitcafe/zed

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

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

Visibility: public

Requested revision: adccfdfbbf428c4c6362682798b07f2f42fad525

Requested commit: adccfdfbbf428c4c6362682798b07f2f42fad525

Commit: adccfdfbbf428c4c6362682798b07f2f42fad525

Tree: d43a3ecc83bbb8dc4c1f33ca1dfe0221512c0b32

Author: Julia

Committer: GitHub

## Message

```
Avoid assigning NSCursor style when it already is that style (#2632)

This avoids a high cost which appears to be the system rasterizing the
cursor every time we call this, fixes a slowdown when scrolling rapidly
while mouse motion continually attempted to assign the style

Fixes
https://linear.app/zed-industries/issue/Z-2200/editor-scroll-slowdown

Release Notes:

- Improved the performance of scrolling by avoiding unnecessary cursor
changes
([#1597](https://github.com/zed-industries/community/issues/1597)).
```

## Parents

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

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

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