# Avoid assigning NSCursor style when it already is that style · gitcafe/zed

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

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

Visibility: public

Requested revision: dc07b60e40d1df812b627db397ebf60e32eed3d5

Requested commit: dc07b60e40d1df812b627db397ebf60e32eed3d5

Commit: dc07b60e40d1df812b627db397ebf60e32eed3d5

Tree: d43a3ecc83bbb8dc4c1f33ca1dfe0221512c0b32

Author: Julia

Committer: Julia

## Message

```
Avoid assigning NSCursor style when it already is that style

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

Co-Authored-By: Antonio Scandurra <me@as-cii.com>

```

## Parents

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

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