# Fix porting mistake that caused clicking on the editor to misbehave \(\#3583\) · gitcafe/zed

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

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

Visibility: public

Requested revision: db39c3d582a5a0e0d238d17ea619158fc9361113

Requested commit: db39c3d582a5a0e0d238d17ea619158fc9361113

Commit: db39c3d582a5a0e0d238d17ea619158fc9361113

Tree: 1cee2e4236448b5461e4341201e4e6e8dc920e95

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Fix porting mistake that caused clicking on the editor to misbehave (#3583)

We used `width` instead of `height` in the "pixels-to-point" conversion
code, which would cause clicks to not work correctly when the width was
smaller than the `y` coordinate.

Release Notes:

- N/A
```

## Parents

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

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

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