Function freya::elements::ontouchmove

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

The touchmove event will fire when the user is touching over an element.

Event Data: TouchData

Example:

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