Function freya_testing::elements::events::onglobalpointerup
pub fn onglobalpointerup<E, T>(
_f: impl FnMut(Event<PointerData>) -> E + 'static
) -> Attributewhere
E: EventReturn<T>,
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!")
}
)
}