# Clear last-mouse-moved pressed button when that button gets a mouse-up · gitcafe/zed

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

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

Visibility: public

Requested revision: b8b951deabaa3c02c96b0d60833abb944cca7001

Requested commit: b8b951deabaa3c02c96b0d60833abb944cca7001

Commit: b8b951deabaa3c02c96b0d60833abb944cca7001

Tree: d7a43e2502efa2aed608883e63abc93902ebfcec

Author: ForLoveOfCats

Committer: ForLoveOfCats

## Message

```
Clear last-mouse-moved pressed button when that button gets a mouse-up

This fixes an annoying issue where if the last mouse moved event was
during a drag it would never trigger mouse cursor changes until next
mouse move reset it. It makes sense to continue to not change the cursor
while the button is pressed so instead this tracks when the mouse button
is released in order to update the mouse move event

```

## Parents

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

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