Liking cljdoc? Tell your friends :D

web.other.Touch

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.
raw docstring

client-xcljs

(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.
sourceraw docstring

client-ycljs

(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.
sourceraw docstring

forcecljs

(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`
sourceraw docstring

identifiercljs

(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`
sourceraw docstring

page-xcljs

(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`
sourceraw docstring

page-ycljs

(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`
sourceraw docstring

radius-xcljs

(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`
sourceraw docstring

radius-ycljs

(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`
sourceraw docstring

rotation-anglecljs

(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`
sourceraw docstring

screen-xcljs

(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.
sourceraw docstring

screen-ycljs

(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.
sourceraw docstring

set-client-x!cljs

(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.
sourceraw docstring

set-client-y!cljs

(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.
sourceraw docstring

set-screen-x!cljs

(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.
sourceraw docstring

set-screen-y!cljs

(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.
sourceraw docstring

targetcljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close