pub fn ontouchstart<E, T>( _f: impl FnMut(Event<TouchData>) -> E + 'static, ) -> Attributewhere E: EventReturn<T>,
The touchstart event fires when the user starts touching an element.
touchstart
Event Data: TouchData
TouchData
fn app() -> Element { rsx!( rect { width: "100", height: "100", background: "red", ontouchstart: |_| println!("Started touching!") } ) }