Function freya::prelude::onglobalpointerup
source · pub fn onglobalpointerup<__Marker>(
_f: impl SuperInto<Callback<Event<PointerData>>, __Marker>
) -> 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!")
}
)
}