/* * Copyright (C)2005-2013 Haxe Foundation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ // This file is generated, do not edit! package js.html; /** A Touch object represents a single point of contact between the user and a touch-sensitive interface device (which may be, for example, a touchscreen or a trackpad).

Documentation for this class was provided by MDN. */ @:native("Touch") extern class Touch { /** The X coordinate of the touch point relative to the viewport, not including any scroll offset. Read only. */ var clientX(default,null) : Int; /** The Y coordinate of the touch point relative to the viewport, not including any scroll offset. Read only. */ var clientY(default,null) : Int; /** The amount of pressure being applied to the surface by the user, as a float between 0.0 (no pressure) and 1.0 (maximum pressure). Read only. */ var force(default,null) : Float; /** A unique identifier for this Touch object. A given touch (say, by a finger) will have the same identifier for the duration of its movement around the surface. This lets you ensure that you're tracking the same touch all the time. Read only. */ var identifier(default,null) : Int; /** The X coordinate of the touch point relative to the viewport, including any scroll offset. Read only. */ var pageX(default,null) : Int; /** The Y coordinate of the touch point relative to the viewport, including any scroll offset. Read only. */ var pageY(default,null) : Int; /** The X radius of the ellipse that most closely circumscribes the area of contact with the screen. The value is in pixels of the same scale as screenX. Read only. */ var radiusX(default,null) : Int; /** The Y radius of the ellipse that most closely circumscribes the area of contact with the screen. The value is in pixels of the same scale as screenY. Read only. */ var radiusY(default,null) : Int; /** The angle (in degrees) that the ellipse described by radiusX and radiusY must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface. Read only. */ var rotationAngle(default,null) : Float; /** The X coordinate of the touch point relative to the screen, not including any scroll offset. Read only. */ var screenX(default,null) : Int; /** The Y coordinate of the touch point relative to the screen, not including any scroll offset. Read only. */ var screenY(default,null) : Int; var target(default,null) : EventTarget; }