pub fn onpointerpress<__Marker>(
_f: impl SuperInto<Callback<Event<PointerData>>, __Marker>,
) -> Attribute
Expand description
The pointerpress
event fires when the user starts and ends a click with their mouse button or starts and stops touching the element.
Event Data: PointerData
ยงExample
fn app() -> Element {
rsx!(
rect {
width: "100",
height: "100",
background: "red",
onpointerpress: |_| println!("Started and released mouse button or stopped touching!")
}
)
}