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

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

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

Visibility: public

Requested revision: b4fc8ea6f7bdd014bd321f49b4de3904392cfb9f

Requested commit: b4fc8ea6f7bdd014bd321f49b4de3904392cfb9f

Commit: b4fc8ea6f7bdd014bd321f49b4de3904392cfb9f

Tree: 1a1f0437fed61cbc0b802c299667489802827735

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Fix porting mistake that caused clicking on the editor to misbehave

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.

```

## Parents

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

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