Ext.event.Touch

Hierarchy

Ext.event.Dom
Ext.event.Touch

Requires

Mixed into

Files

NOTE: This is a private utility class for internal use by the framework. Don't rely on its existence.

Touch event.

Defined By

Properties

The distance of the event. ...

The distance of the event.

This is only available when the event type is swipe and pinch.

The browsers x coordinate of the event.

The browsers x coordinate of the event.

The browsers y coordinate of the event.

The browsers y coordinate of the event.

The target HTMLElement for this event. ...

The target HTMLElement for this event. For example; if you are listening to a tap event and you tap on a <div> element, this will return that <div> element.

Defined By

Methods

Ext.event.Touch
view source
new( event, info, map, list ) : Ext.event.Touch
...

Parameters

Returns

Fires

    Overrides: Ext.event.Dom.constructor

    Ext.event.Touch
    view source
    ( touches, map )private
    ...

    Parameters

    Gets the x coordinate of the event. ...

    Gets the x coordinate of the event.

    This method has been deprecated since 2.0

    Please use pageX property directly.

    Returns

    Gets the y coordinate of the event. ...

    Gets the y coordinate of the event.

    This method has been deprecated since 2.0

    Please use pageX property directly.

    Returns

    ( [selector], [maxDepth], [returnEl] ) : HTMLElement
    Gets the target for the event. ...

    Gets the target for the event. Unlike target, this returns the main element for your event. So if you are listening to a tap event on Ext.Viewport.element, and you tap on an inner element of Ext.Viewport.element, this will return Ext.Viewport.element.

    If you want the element you tapped on, then use target.

    Parameters

    • selector : String (optional)

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

    • maxDepth : Number/Mixed (optional)

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

      Defaults to: 10||document.body

    • returnEl : Boolean (optional)

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

    Returns

    • HTMLElement
    Returns the time of the event. ...

    Returns the time of the event.

    Returns

    Gets the X and Y coordinates of the event. ...

    Gets the X and Y coordinates of the event.

    This method has been deprecated since 2.0

    Please use the pageX and pageY properties directly.

    Returns

    Fires

      Prevents the browsers default handling of the event. ...

      Prevents the browsers default handling of the event.

      ...

      Parameters