pub fn onpointermove<__Marker>(
_f: impl SuperInto<Callback<Event<PointerData>>, __Marker>,
) -> AttributeExpand description
The pointermove event fires when the user moves the cursor or touches over an element.
Unlike onpointerenter, this fires even if the user was already hovering over
the element.
Event Data: PointerData
ยงExample
fn app() -> Element {
rsx!(
rect {
width: "100",
height: "100",
background: "red",
onpointermove: |_| println!("Moving or touching!")
}
)
}