Home Reference Source Test
public class | source

ZingEvent

An event wrapper that normalizes events across browsers and input devices

Constructor Summary

Public Constructor
public

constructor(event: Event, touchIdentifier: Number)

Member Summary

Public Members
public

The original event object.

public

The pageX coordinate for the event

public

The pageY coordinate for the event

public

The screenX coordinate for the event

public

The screenY coordinate for the event

public

type: String | null

The type of event or null if it is an event not predetermined.

public

The X coordinate for the event, based off of the client.

public

The Y coordinate for the event, based off of the client.

Public Constructors

public constructor(event: Event, touchIdentifier: Number) source

Params:

NameTypeAttributeDescription
event Event

The event object being wrapped.

event.touches Array

The number of touches on a screen (mobile only).

event.changedTouches Object

The TouchList representing points that participated in the event.

touchIdentifier Number

The index of touch if applicable

Public Members

public originalEvent: Event source

The original event object.

public pageX: number source

The pageX coordinate for the event

public pageY: number source

The pageY coordinate for the event

public screenX: number source

The screenX coordinate for the event

public screenY: number source

The screenY coordinate for the event

public type: String | null source

The type of event or null if it is an event not predetermined.

See:

public x: number source

The X coordinate for the event, based off of the client.

public y: number source

The Y coordinate for the event, based off of the client.