# editor: Add delay for selection drag to prevent accidental drag over attempt for new selection \(\#32586\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 13ee78c0b4f3b8eb9d7fe7762c6ef8b044a9ece8

Requested commit: 13ee78c0b4f3b8eb9d7fe7762c6ef8b044a9ece8

Commit: 13ee78c0b4f3b8eb9d7fe7762c6ef8b044a9ece8

Tree: 01fb5315cf611edc4d9d393df541a0ed09608c54

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Add delay for selection drag to prevent accidental drag over attempt for new selection (#32586)

- Add `300ms` delay for it to consider it as selection drag instead of
an attempt to make a new selection.
- Add cursor icon while dragging the selection.

This is same as what chromium does:
https://chromium.googlesource.com/chromium/blink/+/master/Source/core/input/EventHandler.cpp#142

Release Notes:

- Fixed issue where you accidentally end up dragging the selection where
intent was to make a new one instead. To drag selection now, you need to
hold just a little longer before dragging.
```

## Parents

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

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