Function freya::elements::events::ontouchend

pub fn ontouchend<'a>(
    _cx: &'a ScopeState,
    _f: impl FnMut(Event<TouchData>) + 'a
) -> Attribute<'a>
Expand description

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

Event Data: TouchData

Example

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