Use the hit bounds when painting mouse regions

This commit is contained in:
Nathan Sobo 2022-05-26 20:05:20 -06:00
parent 893f15ddab
commit aedfd74d30

View File

@ -113,7 +113,7 @@ impl Element for MouseEventHandler {
view_id: cx.current_view_id(),
tag: self.tag,
region_id: self.id,
bounds,
bounds: self.hit_bounds(bounds),
hover: None,
click: self.click_handler.clone(),
mouse_down: self.mouse_down_handler.clone(),