Block hovering behind overlays

This commit is contained in:
Nathan Sobo 2022-05-27 11:54:51 -06:00
parent 5413a97c7e
commit c3baf2748f
5 changed files with 34 additions and 31 deletions

View file

@ -3484,8 +3484,7 @@ impl<'a, V: View> RenderContext<'a, V> {
pub fn mouse_state<Tag: 'static>(&self, region_id: usize) -> MouseState {
let region_id = MouseRegionId {
view_id: self.view_id,
tag: TypeId::of::<Tag>(),
region_id,
discriminant: (TypeId::of::<Tag>(), region_id),
};
MouseState {
hovered: self.hovered_region_ids.contains(&region_id),