Fix bounds calculations
This commit is contained in:
parent
7738867639
commit
713d72942d
3 changed files with 3 additions and 5 deletions
|
@ -118,7 +118,6 @@ impl<V: 'static> Div<V> {
|
|||
})
|
||||
}
|
||||
|
||||
let bounds = layout.bounds;
|
||||
let pressed = Cell::new(hovered && cx.is_mouse_down(MouseButton::Left));
|
||||
cx.on_event(layout.order, move |_, event: &MouseButtonEvent, _| {
|
||||
if bounds.contains_point(event.position) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue