# gpui_web: Disable native canvas touch callouts \(\#63775\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9bda6b4e0342f22680bc1e7fcd847f4697c48874

Requested commit: 9bda6b4e0342f22680bc1e7fcd847f4697c48874

Commit: 9bda6b4e0342f22680bc1e7fcd847f4697c48874

Tree: cf0e05dd76d53f2720fab2c5c22eb23c04f24e74

Author: Jakub Konka

Committer: GitHub

## Message

```
gpui_web: Disable native canvas touch callouts (#63775)

On iOS, WebKit presents a native touch callout when a user long-presses
a canvas. For GPUI Web this selected the full application canvas while
GPUI independently selected the intended word, producing two pairs of
selection handles, a native edit menu, and haptic feedback.

Set `-webkit-touch-callout: none` on the canvas created by `gpui_web`.
GPUI already owns touch gesture recognition on this surface, so WebKit
should not provide a competing canvas interaction.

Tested with:

- `cargo fmt --check --package gpui_web`
- `RUSTC_BOOTSTRAP=1 cargo check -p gpui_web --target
wasm32-unknown-unknown`
- A Delta Web WASM build using the local Zed checkout
- Manual verification on an iPhone that long-press word selection no
longer selects the full canvas

Release Notes:

- N/A
```

## Parents

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

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