Function freya_elements::elements::events::ontouchmove

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

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

Event Data: TouchData

§Example

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