Function freya::prelude::dioxus_elements::ontouchend

pub fn ontouchend<E, T>(
    _f: impl FnMut(Event<TouchData>) -> E + 'static,
) -> Attribute
where E: EventReturn<T>,
Expand description

The touchend event fires when the user stops touching an element.

Event Data: TouchData

ยงExample

fn app() -> Element {
    rsx!(
        rect {
            width: "100",
            height: "100",
            background: "red",
            ontouchend: |_| println!("Stopped touching!")
        }
    )
}