最終更新:2015-07-07 (火) 12:28:39 (3214d)  

TouchEvent
Top / TouchEvent

http://www.w3.org/TR/touch-events/#touchevent-interface

interface TouchEvent : UIEvent

イベント

  • touchstart - Sent when a finger for a given event touches the surface.
  • touchmove - Sent when a given event moves on the surface.
  • touchend? - Sent when a given event lifts from the surface.
  • touchcancel? - Sent when the system cancels tracking for the touch.

インターフェイス

interface TouchEvent : UIEvent {
    readonly attribute TouchList   touches;
    readonly attribute TouchList   targetTouches;
    readonly attribute TouchList   changedTouches;
    readonly attribute boolean     altKey;
    readonly attribute boolean     metaKey;
    readonly attribute boolean     ctrlKey;
    readonly attribute boolean     shiftKey;
    readonly attribute EventTarget relatedTarget;
};

メンバ

クラス

TouchList

  • TouchList.length?TouchList中のTouchオブジェクトの個数
    TouchList.identifiedTouch?(id)識別子が指定された値と一致するリスト内の、最初の Touch エントリを返す
    TouchList.item?(index)Touchオブジェクト

Touch

  • Touch.clientX?
    Touch.clientY?
    Touch.force?
    Touch.identifier?
    Touch.pageX?
    Touch.pageY?
    Touch.radiusX?
    Touch.radiusY?
    Touch.rotationAngle?
    Touch.screenX?
    Touch.screenY?