Function freya::prelude::dioxus_elements::onpointerup
source · pub fn onpointerup<E, T>(
_f: impl FnMut(Event<PointerData>) -> E + 'static,
) -> Attributewhere
E: EventReturn<T>,
Expand description
The pointerup
event fires when the user releases their mouse button or stops touching the element.
Event Data: PointerData
§Example
fn app() -> Element {
rsx!(
rect {
width: "100",
height: "100",
background: "red",
onpointerup: |_| println!("Released mouse button, or no longer touching!")
}
)
}