Function freya::prelude::dioxus_elements::ontouchmove

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