Function freya::prelude::dioxus_elements::onpointermove

pub fn onpointermove<E, T>(
    _f: impl FnMut(Event<PointerData>) -> E + 'static,
) -> Attribute
where E: EventReturn<T>,
Expand 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!")
        }
    )
}