# Fix stutter while dragging something over an element that stops event propagation \(\#10737\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 37e4f83a78509a1a0de2bc3fbe234a5132780454

Requested commit: 37e4f83a78509a1a0de2bc3fbe234a5132780454

Commit: 37e4f83a78509a1a0de2bc3fbe234a5132780454

Tree: 4e9fdb5fb8a1493e7d1fc6858d9ceff9cb018776

Author: Philipp Schaffrath

Committer: GitHub

## Message

```
Fix stutter while dragging something over an element that stops event propagation (#10737)

~~This is extracted from #10643.~~

~~It looks like the editor had a small optimization to drop events when
hovering the gutter. This also happens while dragging a tab over the
gutter, and causes some stuttering. Please correct me if this wasn't
just a small optimization, but I could not derive a different reason for
this code to exist.~~

The window was waiting for event propagation to update any drag. This
change makes sure the drag always gets updated, which makes sure it will
always be fluid, no matter if any element stops event propagation. Ty
@as-cii for pointing me to a better solution!

Release Notes:

- Fixed issue where dragging tab over any element that stops event
propagation would stutter
```

## Parents

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

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