Function freya_elements::elements::events::onpointerleave
source · pub fn onpointerleave<__Marker>(
_f: impl SuperInto<EventHandler<Event<PointerData>>, __Marker>
) -> Attribute
Expand description
The pointerleave
event fires when the user stops hovering/touching an element.
Event Data: PointerData
§Example
fn app() -> Element {
rsx!(
rect {
width: "100",
height: "100",
background: "red",
onpointerleave: |_| println!("Started hovering or touching!")
}
)
}