Add InteractiveElement::block_mouse which renders an "opaque" layer

Co-Authored-By: Antonio <antonio@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Nathan Sobo 2023-12-20 11:02:47 -07:00
parent dc047437c6
commit fffb30ac6d
2 changed files with 18 additions and 5 deletions

View file

@ -499,7 +499,8 @@ impl Render for Dock {
cx.stop_propagation();
}
}))
.z_index(1);
.z_index(1)
.block_mouse();
const HANDLE_SIZE: Pixels = Pixels(6.);