Function freya::prelude::GestureArea

pub fn GestureArea(props: GestureAreaProps) -> Option<VNode>
Expand description

Detect complex touch gestures such as Gesture::DoubleTap.

ยงExample

fn app() -> Element {
   let mut gesture = use_signal(|| "Tap here".to_string());
   rsx!(
       GestureArea {
           ongesture: move |g| gesture.set(format!("{g:?}")),
           label {
               "{gesture}"
           }
       }
   )
}