public interface Touch
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).Modifier and Type | Method and Description |
---|---|
int |
getClientX()
The X coordinate of the touch point relative to the viewport, not including any scroll offset.
|
int |
getClientY()
The Y coordinate of the touch point relative to the viewport, not including any scroll offset.
|
int |
getIdentifier()
A unique identifier for this
Touch object. |
int |
getPageX()
The X coordinate of the touch point relative to the viewport, including any scroll offset.
|
int |
getPageY()
The Y coordinate of the touch point relative to the viewport, including any scroll offset.
|
int |
getScreenX()
The X coordinate of the touch point relative to the screen, not including any scroll offset.
|
int |
getScreenY()
The Y coordinate of the touch point relative to the screen, not including any scroll offset.
|
EventTarget |
getTarget() |
float |
getWebkitForce() |
int |
getWebkitRadiusX() |
int |
getWebkitRadiusY() |
float |
getWebkitRotationAngle() |
int getClientX()
int getClientY()
int getIdentifier()
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.int getPageX()
int getPageY()
int getScreenX()
int getScreenY()
EventTarget getTarget()
float getWebkitForce()
int getWebkitRadiusX()
int getWebkitRadiusY()
float getWebkitRotationAngle()
Copyright © 2016. All rights reserved.