WheelEvent Class
https://w3c.github.io/uievents/#wheelevent
public sealed class WheelEvent : MouseEvent- Inheritance
MouseEventWheelEvent
Constructors
| Name | Description |
|---|---|
| WheelEvent(string, WheelEventInit?) | Creates a wheel event of the given type with the given initialization dictionary. |
WheelEvent(string, WheelEventInit?)
UIEvents.csCreates a wheel event of the given type with the given initialization dictionary.
public WheelEvent(string type, WheelEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| DeltaMode | Gets the unit of the delta values: WheelEvent.DomDeltaPixel, WheelEvent.DomDeltaLine or WheelEvent.DomDeltaPage. |
| DeltaX | Gets the horizontal scroll amount. |
| DeltaY | Gets the vertical scroll amount. |
| DeltaZ | Gets the scroll amount along the Z axis. |
| Momentum | Gets a value indicating whether the event is produced by the momentum of a previous gesture. |
DeltaMode
UIEvents.csGets the unit of the delta values: WheelEvent.DomDeltaPixel, WheelEvent.DomDeltaLine or WheelEvent.DomDeltaPage.
public uint DeltaMode { get; }DeltaX
UIEvents.csGets the horizontal scroll amount.
public double DeltaX { get; }DeltaY
UIEvents.csGets the vertical scroll amount.
public double DeltaY { get; }DeltaZ
UIEvents.csGets the scroll amount along the Z axis.
public double DeltaZ { get; }Momentum
UIEvents.csGets a value indicating whether the event is produced by the momentum of a previous gesture.
public bool Momentum { get; }Constants
| Name | Description |
|---|---|
| DomDeltaLine | The delta values are expressed in lines. |
| DomDeltaPage | The delta values are expressed in pages. |
| DomDeltaPixel | The delta values are expressed in pixels. |
DomDeltaLine
The delta values are expressed in lines.
public const uint DomDeltaLine = 1UDomDeltaPage
The delta values are expressed in pages.
public const uint DomDeltaPage = 2UDomDeltaPixel
The delta values are expressed in pixels.
public const uint DomDeltaPixel = 0U