Interface ITouch

Hierarchy

Index

Properties

Methods

Properties

optional public distance?: number

[Property] (Number)

optional public pageX?: number

[Property] (Number)

optional public pageY?: number

[Property] (Number)

optional public target?: HTMLElement

[Property] (HTMLElement)

Methods

optional public getPageX(): number

[Method] Gets the x coordinate of the event

Returns

number

Number

optional public getPageY(): number

[Method] Gets the y coordinate of the event

Returns

number

Number

optional public getTarget(selector?: string, maxDepth?: any, returnEl?: boolean): HTMLElement

[Method] Gets the target for the event

Parameters

  • selector?: string optional

    String A simple selector to filter the target or look for an ancestor of the target

  • maxDepth?: any optional

    Number/Mixed The max depth to search as a number or element (defaults to 10 || document.body)

  • returnEl?: boolean optional

    Boolean true to return a Ext.Element object instead of DOM node.

Returns

HTMLElement

HTMLElement

optional public getTime(): any

[Method] Returns the time of the event

Returns

any

Date

optional public getXY(): Array<any>

[Method] Gets the X and Y coordinates of the event

Returns

Array<any>

Array

optional public preventDefault()

[Method] Prevents the browsers default handling of the event