pointer_events_from_touch_event

Function pointer_events_from_touch_event 

Source
pub fn pointer_events_from_touch_event(
    ev: &TouchEvent,
    opts: &Options,
) -> Vec<PointerEvent>
Expand description

Convert a DOM TouchEvent into zero or more ui-events PointerEvents.

Browser touch events can report multiple changed touches at once, so this returns a Vec. For touchstart, touchmove, and touchend, the returned events correspond to the event’s changedTouches list.

For touchcancel, the returned events are PointerEvent::Cancel, which do not include pointer state.