@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Touch")
public class Touch
extends java.lang.Object
| Constructor and Description |
|---|
Touch(TouchInit touchInitDict)
The Touch() constructor creates a new Touch object.
|
| Modifier and Type | Method and Description |
|---|---|
float |
altitudeAngle() |
float |
azimuthAngle() |
double |
clientX()
The Touch.clientX read-only property returns the X coordinate of the touch point relative to the viewport, not including any scroll offset.
|
double |
clientY()
The Touch.clientY read-only property returns the Y coordinate of the touch point relative to the browser's viewport, not including any scroll offset.
|
float |
force()
The Touch.force read-only property returns the amount of pressure the user is applying to the touch surface for a Touch point.
|
int |
identifier()
The Touch.identifier returns a value uniquely identifying this point of contact with the touch surface.
|
double |
pageX()
The Touch.pageX read-only property returns the X coordinate of the touch point relative to the viewport, including any scroll offset.
|
double |
pageY()
The Touch.pageY read-only property returns the Y coordinate of the touch point relative to the viewport, including any scroll offset.
|
float |
radiusX()
Returns the X radius of the ellipse that most closely circumscribes the area of contact with the touch surface.
|
float |
radiusY()
Returns the Y radius of the ellipse that most closely circumscribes the area of contact with the touch surface.
|
float |
rotationAngle()
Returns the rotation angle, in degrees, of the contact area ellipse defined by Touch.radiusX and Touch.radiusY.
|
double |
screenX()
Returns the X coordinate of the touch point relative to the screen, not including any scroll offset.
|
double |
screenY()
Returns the Y coordinate of the touch point relative to the screen, not including any scroll offset.
|
EventTarget |
target()
Returns the Element (EventTarget) on which the touch contact started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element or even been removed from the document.
|
java.lang.String |
touchType() |
public Touch(@Nonnull
TouchInit touchInitDict)
@JsProperty(name="altitudeAngle") public float altitudeAngle()
@JsProperty(name="azimuthAngle") public float azimuthAngle()
@JsProperty(name="clientX") public double clientX()
@JsProperty(name="clientY") public double clientY()
@JsProperty(name="force") public float force()
@JsProperty(name="identifier") public int identifier()
@JsProperty(name="pageX") public double pageX()
@JsProperty(name="pageY") public double pageY()
@JsProperty(name="radiusX") public float radiusX()
@JsProperty(name="radiusY") public float radiusY()
@JsProperty(name="rotationAngle") public float rotationAngle()
@JsProperty(name="screenX") public double screenX()
@JsProperty(name="screenY") public double screenY()
@JsProperty(name="target") @Nonnull public EventTarget target()
@JsProperty(name="touchType") @Nonnull @TouchType public java.lang.String touchType()