WheelEvent Class

https://w3c.github.io/uievents/#wheelevent

public sealed class WheelEvent : MouseEvent
Inheritance
MouseEvent WheelEvent

Constructors

NameDescription
WheelEvent(string, WheelEventInit?)Creates a wheel event of the given type with the given initialization dictionary.

WheelEvent(string, WheelEventInit?)

UIEvents.cs

Creates a wheel event of the given type with the given initialization dictionary.

public WheelEvent(string type, WheelEventInit? eventInitDict = null)

Properties

NameDescription
DeltaModeGets the unit of the delta values: WheelEvent.DomDeltaPixel, WheelEvent.DomDeltaLine or WheelEvent.DomDeltaPage.
DeltaXGets the horizontal scroll amount.
DeltaYGets the vertical scroll amount.
DeltaZGets the scroll amount along the Z axis.
MomentumGets a value indicating whether the event is produced by the momentum of a previous gesture.

DeltaMode

UIEvents.cs
public uint DeltaMode { get; }

Gets the horizontal scroll amount.

public double DeltaX { get; }

Gets the vertical scroll amount.

public double DeltaY { get; }

Gets the scroll amount along the Z axis.

public double DeltaZ { get; }

Momentum

UIEvents.cs

Gets a value indicating whether the event is produced by the momentum of a previous gesture.

public bool Momentum { get; }

Constants

NameDescription
DomDeltaLineThe delta values are expressed in lines.
DomDeltaPageThe delta values are expressed in pages.
DomDeltaPixelThe delta values are expressed in pixels.

DomDeltaLine

The delta values are expressed in lines.

public const uint DomDeltaLine = 1U

DomDeltaPage

The delta values are expressed in pages.

public const uint DomDeltaPage = 2U

DomDeltaPixel

The delta values are expressed in pixels.

public const uint DomDeltaPixel = 0U