Skip to content

WheelEvent

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

WheelEvent 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
Wheel events Limited availability Partial 16% 5 of 31 subtests pass 6
constructor
constructor(DOMString type, optional WheelEventInit eventInitDict = {});
int32_t niso_wheel_event_new(niso_dom* dom, const char* type, size_t type_len, const niso_wheel_event_init* event_init_dict, niso_handle* out);
const
const unsigned long DOM_DELTA_PIXEL = 0x00;
const
const unsigned long DOM_DELTA_LINE = 0x01;
const
const unsigned long DOM_DELTA_PAGE = 0x02;
attribute
readonly attribute double deltaX;
int32_t niso_wheel_event_get_delta_x(niso_dom* dom, niso_handle self, double* out);
attribute
readonly attribute double deltaY;
int32_t niso_wheel_event_get_delta_y(niso_dom* dom, niso_handle self, double* out);
attribute
readonly attribute double deltaZ;
int32_t niso_wheel_event_get_delta_z(niso_dom* dom, niso_handle self, double* out);
attribute
readonly attribute unsigned long deltaMode;
int32_t niso_wheel_event_get_delta_mode(niso_dom* dom, niso_handle self, uint32_t* 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.

  • momentum (Wheel events momentum)
  • pinch_to_zoom_support (Wheel events)