Skip to content

PointerEvent

Generated from idl/uievents.webidl when the site was built at 7aa23e2.

PointerEvent is an interface in idl/uievents.webidl, inheriting MouseEvent, exposed in Window. What it does is on MDN; this page says what niso has of it.

The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).

Feature On the web In niso Members
Pointer Events Widely available Partial 19% 484 of 2436 subtests pass 14
constructor
constructor(DOMString type, optional PointerEventInit eventInitDict = {});
int32_t niso_pointer_event_new(niso_dom* dom, const char* type, size_t type_len, const niso_pointer_event_init* event_init_dict, niso_handle* out);
attribute
readonly attribute long pointerId;
int32_t niso_pointer_event_get_pointer_id(niso_dom* dom, niso_handle self, int32_t* out);
attribute
readonly attribute double width;
int32_t niso_pointer_event_get_width(niso_dom* dom, niso_handle self, double* out);
attribute
readonly attribute double height;
int32_t niso_pointer_event_get_height(niso_dom* dom, niso_handle self, double* out);
attribute
readonly attribute float pressure;
int32_t niso_pointer_event_get_pressure(niso_dom* dom, niso_handle self, float* out);
attribute
readonly attribute float tangentialPressure;
int32_t niso_pointer_event_get_tangential_pressure(niso_dom* dom, niso_handle self, float* out);
attribute
readonly attribute long tiltX;
int32_t niso_pointer_event_get_tilt_x(niso_dom* dom, niso_handle self, int32_t* out);
attribute
readonly attribute long tiltY;
int32_t niso_pointer_event_get_tilt_y(niso_dom* dom, niso_handle self, int32_t* out);
attribute
readonly attribute long twist;
int32_t niso_pointer_event_get_twist(niso_dom* dom, niso_handle self, int32_t* out);
attribute
readonly attribute DOMString pointerType;
int32_t niso_pointer_event_get_pointer_type(niso_dom* dom, niso_handle self, niso_str* out);
attribute
readonly attribute boolean isPrimary;
int32_t niso_pointer_event_get_is_primary(niso_dom* dom, niso_handle self, bool* out);
operation
sequence<PointerEvent> getCoalescedEvents();
int32_t niso_pointer_event_get_coalesced_events(niso_dom* dom, niso_handle self, niso_handles* out);
operation
sequence<PointerEvent> getPredictedEvents();
int32_t niso_pointer_event_get_predicted_events(niso_dom* dom, niso_handle self, niso_handles* out);

Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.

  • altitudeAngle (Pointer Events)
  • azimuthAngle (Pointer Events)
  • persistentDeviceId (Pointer Events)