Function freya::prelude::dioxus_elements::onpointerleave

pub fn onpointerleave<E, T>(
    _f: impl FnMut(Event<PointerData>) -> E + 'static,
) -> Attribute
where E: EventReturn<T>,
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!")
        }
    )
}