layout: default title: PointerEvent parent: Core Classes —
dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Events
PointerEvent Class
This event type returns for all pointer events (down, up, enter, leave, move, etc.).
public class PointerEvent : dymaptic.GeoBlazor.Core.Events.JsEvent,
System.IEquatable<dymaptic.GeoBlazor.Core.Events.PointerEvent>
Inheritance System.Object 🡒 JsEvent 🡒 PointerEvent
Implements System.IEquatable<PointerEvent>
Constructors
PointerEvent(string, Nullable, Nullable, long, Nullable, double, double, int, int, double, DomPointerEvent) Constructor
This event type returns for all pointer events (down, up, enter, leave, move, etc.).
public PointerEvent(string Type, System.Nullable<int> EventId, System.Nullable<bool> Cancelable, long PointerId, System.Nullable<dymaptic.GeoBlazor.Core.Events.PointerType> PointerType, double X, double Y, int Button, int Buttons, double Timestamp, dymaptic.GeoBlazor.Core.Events.DomPointerEvent Native);
Parameters
Type
System.String
The event type.
EventId
System.Nullable<System.Int32>
The unique Id of the event.
Cancelable
System.Nullable<System.Boolean>
Whether the event can be cancelled once begun.
PointerId
System.Int64
Uniquely identifies a pointer between multiple down, move, and up events. Ids might get reused after a pointer-up
event.
PointerType
System.Nullable<PointerType>
Indicates the pointer type.
The horizontal screen coordinate of the pointer on the view.
The vertical screen coordinate of the pointer on the view.
Button
System.Int32
Indicates which mouse button was clicked.
Buttons
System.Int32
Indicates the current mouse button state. 0 = left click (or touch), 1 = middle click, 2 = right click.
Timestamp
System.Double
Time stamp (in milliseconds) at which the event was emitted.
Native
DomPointerEvent
A standard DOM Pointer Event
Properties
PointerEvent.Button Property
Indicates which mouse button was clicked.
public int Button { get; set; }
Property Value
PointerEvent.Buttons Property
Indicates the current mouse button state. 0 = left click (or touch), 1 = middle click, 2 = right click.
public int Buttons { get; set; }
Property Value
PointerEvent.PointerId Property
Uniquely identifies a pointer between multiple down, move, and up events. Ids might get reused after a pointer-up
event.
public long PointerId { get; set; }
Property Value
PointerEvent.X Property
The horizontal screen coordinate of the pointer on the view.
public double X { get; set; }
Property Value
PointerEvent.Y Property
The vertical screen coordinate of the pointer on the view.
public double Y { get; set; }