Represents a Mouse event fired on a ElementComponent.
new ElementMouseEvent(
event: MouseEvent,
element: ElementComponent,
camera: CameraComponent,
x: number,
y: number,
lastX: number,
lastY: number): ElementMouseEvent
Create an instance of an ElementMouseEvent.
MouseEvent
The MouseEvent that was originally raised.
The ElementComponent that this event was originally raised on.
The CameraComponent that this event was originally raised via.
number
The x coordinate.
number
The y coordinate.
number
The last x coordinate.
number
The last y coordinate.
altKey: boolean
Whether the alt key was pressed.
button: number
The mouse button.
camera: CameraComponent
The CameraComponent that this event was originally raised via.
ctrlKey: boolean
Whether the ctrl key was pressed.
dx: number
The amount of horizontal movement of the cursor.
dy: number
The amount of vertical movement of the cursor.
element: ElementComponent
The ElementComponent that this event was originally raised on.
event: MouseEvent | TouchEvent
MouseEvent or TouchEvent that was originally raised.
metaKey: boolean
Whether the meta key was pressed.
shiftKey: boolean
Whether the shift key was pressed.
wheelDelta: number
The amount of the wheel movement.
stopPropagation(): void
Stop propagation of the event to parent ElementComponents. This also stops propagation of the event to other event listeners of the original DOM Event.
void