The Touch interface represents a single contact point on a touch-sensitive The contact point is commonly a finger or stylus and the device be a touchscreen or trackpad.
The Touch interface represents a single contact point on a touch-sensitive The contact point is commonly a finger or stylus and the device be a touchscreen or trackpad.
(client-x this)
Property.
Returns the X coordinate of the touch point relative to the left of the browser viewport, not including any scroll offset.
Property. Returns the X coordinate of the touch point relative to the left of the browser viewport, not including any scroll offset.
(client-y this)
Property.
Returns the Y coordinate of the touch point relative to the top of the browser viewport, not including any scroll offset.
Property. Returns the Y coordinate of the touch point relative to the top of the browser viewport, not including any scroll offset.
(constructor & args)
Constructor.
The Touch() constructor creates a new web.other.Touch
object.
See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/Touch
Constructor. The Touch() constructor creates a new `web.other.Touch` object. See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/Touch`
(force this)
Property.
[Read Only] [Experimental]
The Touch.force read-only property returns the amount of pressure
user is applying to the touch surface for a web.other.Touch
touchItem.force;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/force
Property. [Read Only] [Experimental] The Touch.force read-only property returns the amount of pressure user is applying to the touch surface for a `web.other.Touch` `touchItem.force;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/force`
(identifier this)
Property.
[Read Only] [Experimental]
The Touch.identifier returns a value uniquely identifying this of contact with the touch surface. This value remains consistent every event involving this finger's (or stylus's) movement on surface until it is lifted off the surface.
touchItem.identifier;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/identifier
Property. [Read Only] [Experimental] The Touch.identifier returns a value uniquely identifying this of contact with the touch surface. This value remains consistent every event involving this finger's (or stylus's) movement on surface until it is lifted off the surface. `touchItem.identifier;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/identifier`
(page-x this)
Property.
[Read Only]
The Touch.pageX read-only property returns the X coordinate of touch point relative to the viewport, including any scroll offset.
touchItem.pageX;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/pageX
Property. [Read Only] The Touch.pageX read-only property returns the X coordinate of touch point relative to the viewport, including any scroll offset. `touchItem.pageX;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/pageX`
(page-y this)
Property.
[Read Only]
The Touch.pageY read-only property returns the Y coordinate of touch point relative to the viewport, including any scroll offset.
touchItem.pageY;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/pageY
Property. [Read Only] The Touch.pageY read-only property returns the Y coordinate of touch point relative to the viewport, including any scroll offset. `touchItem.pageY;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/pageY`
(radius-x this)
Property.
[Read Only]
Returns the X radius of the ellipse that most closely circumscribes
area of contact with the touch surface. The value is in CSS pixels
the same scale as Touch.screenX
.
var xRadius = touchItem.radiusX;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/radiusX
Property. [Read Only] Returns the X radius of the ellipse that most closely circumscribes area of contact with the touch surface. The value is in CSS pixels the same scale as `Touch.screenX`. `var xRadius = touchItem.radiusX;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/radiusX`
(radius-y this)
Property.
[Read Only]
Returns the Y radius of the ellipse that most closely circumscribes
area of contact with the touch surface. The value is in CSS pixels
the same scale as Touch.screenX
.
var yRadius = touchItem.radiusY;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/radiusY
Property. [Read Only] Returns the Y radius of the ellipse that most closely circumscribes area of contact with the touch surface. The value is in CSS pixels the same scale as `Touch.screenX`. `var yRadius = touchItem.radiusY;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/radiusY`
(rotation-angle this)
Property.
[Read Only]
Returns the rotation angle, in degrees, of the contact area ellipse
by Touch.radiusX
and Touch.radiusY
. The value may be between
and 90. Together, these three values describe an ellipse that
the size and shape of the area of contact between the user and
screen. This may be a relatively large ellipse representing the
between a fingertip and the screen or a small area representing
tip of a stylus, for example.
var angle = touchItem.rotationAngle;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/rotationAngle
Property. [Read Only] Returns the rotation angle, in degrees, of the contact area ellipse by `Touch.radiusX` and `Touch.radiusY`. The value may be between and 90. Together, these three values describe an ellipse that the size and shape of the area of contact between the user and screen. This may be a relatively large ellipse representing the between a fingertip and the screen or a small area representing tip of a stylus, for example. `var angle = touchItem.rotationAngle;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/rotationAngle`
(screen-x this)
Property.
Returns the X coordinate of the touch point relative to the left of the screen.
Property. Returns the X coordinate of the touch point relative to the left of the screen.
(screen-y this)
Property.
Returns the Y coordinate of the touch point relative to the top of the screen.
Property. Returns the Y coordinate of the touch point relative to the top of the screen.
(set-client-x! this val)
Property.
Returns the X coordinate of the touch point relative to the left of the browser viewport, not including any scroll offset.
Property. Returns the X coordinate of the touch point relative to the left of the browser viewport, not including any scroll offset.
(set-client-y! this val)
Property.
Returns the Y coordinate of the touch point relative to the top of the browser viewport, not including any scroll offset.
Property. Returns the Y coordinate of the touch point relative to the top of the browser viewport, not including any scroll offset.
(set-screen-x! this val)
Property.
Returns the X coordinate of the touch point relative to the left of the screen.
Property. Returns the X coordinate of the touch point relative to the left of the screen.
(set-screen-y! this val)
Property.
Returns the Y coordinate of the touch point relative to the top of the screen.
Property. Returns the Y coordinate of the touch point relative to the top of the screen.
(target this)
Property.
[Read Only]
Returns the web.Element
(web.EventTarget
) on which the touch
started when it was first placed on the surface, even if the
point has since moved outside the interactive area of that element
even been removed from the document. Note that if the target
is removed from the document, events will still be targeted at
and hence won't necessarily bubble up to the window or document
If there is any risk of an element being removed while it is
touched, the best practice is to attach the touch listeners directly
the target.
var el = touchPoint.target;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/target
Property. [Read Only] Returns the `web.Element` (`web.EventTarget`) on which the touch started when it was first placed on the surface, even if the point has since moved outside the interactive area of that element even been removed from the document. Note that if the target is removed from the document, events will still be targeted at and hence won't necessarily bubble up to the window or document If there is any risk of an element being removed while it is touched, the best practice is to attach the touch listeners directly the target. `var el = touchPoint.target;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/target`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close