zed/crates/gpui/src/elements
Antonio Scandurra b396909035 Calculate hitbox based on visible bounds in {Mouse}EventHandler
This is in contrast to not dispatching the event altogether in `Flex` when
the event is not contained in the flex element bounds. That approach was
problematic because it didn't give an opportunity to `MouseEventHandler`s
to handle mouse move events when they didn't intersect with the element bounds,
causing elements to never clear their hover state, cursor style, etc.
2022-04-07 15:12:09 +02:00
..
align.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
canvas.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
constrained_box.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
container.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
empty.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
event_handler.rs Calculate hitbox based on visible bounds in {Mouse}EventHandler 2022-04-07 15:12:09 +02:00
expanded.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
flex.rs Calculate hitbox based on visible bounds in {Mouse}EventHandler 2022-04-07 15:12:09 +02:00
hook.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
image.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
label.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
list.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
mouse_event_handler.rs Calculate hitbox based on visible bounds in {Mouse}EventHandler 2022-04-07 15:12:09 +02:00
overlay.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
stack.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
svg.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
text.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
uniform_list.rs Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00