Function freya_elements::elements::onglobalpointerup
source · pub fn onglobalpointerup<E: EventReturn<T>, T>(
_f: impl FnMut(Event<PointerData>) -> E + 'static,
) -> Attribute
Expand description
The globalpointerup
event fires when the user releases the point anywhere in the app.
Event Data: PointerData
§Example
fn app() -> Element {
rsx!(
rect {
onglobalpointerup: |_| println!("Pointer released somewhere else!")
}
rect {
width: "100",
height: "100",
background: "red",
onclick: |_| println!("Clicked!")
}
)
}