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.

The Touch.clientX read-only property returns the X coordinate the touch point relative to the viewport, not including any scroll

touchItem.clientX;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientX

Property.

The Touch.clientX read-only property returns the X coordinate
the touch point relative to the viewport, not including any scroll

`touchItem.clientX;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientX`
sourceraw docstring

client-ycljs

(client-y this)

Property.

The Touch.clientY read-only property returns the Y coordinate the touch point relative to the browser's viewport, not including scroll offset.

touchItem.clientY;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientY

Property.

The Touch.clientY read-only property returns the Y coordinate
the touch point relative to the browser's viewport, not including
scroll offset.

`touchItem.clientY;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientY`
sourceraw docstring

constructorcljs

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

forcecljs

(force this)

Property.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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 screen, including any scroll offset.

var x = touchItem.screenX;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenX

Property.

Returns the X coordinate of the touch point relative to the screen,
including any scroll offset.

`var x = touchItem.screenX;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenX`
sourceraw docstring

screen-ycljs

(screen-y this)

Property.

Returns the Y coordinate of the touch point relative to the screen, including any scroll offset.

var y = touchItem.screenY;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenY

Property.

Returns the Y coordinate of the touch point relative to the screen,
including any scroll offset.

`var y = touchItem.screenY;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenY`
sourceraw docstring

set-radius-x!cljs

(set-radius-x! this val)

Property.

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.

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

set-radius-y!cljs

(set-radius-y! this val)

Property.

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.

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

set-rotation-angle!cljs

(set-rotation-angle! this val)

Property.

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.

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

set-screen-x!cljs

(set-screen-x! this val)

Property.

Returns the X coordinate of the touch point relative to the screen, including any scroll offset.

var x = touchItem.screenX;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenX

Property.

Returns the X coordinate of the touch point relative to the screen,
including any scroll offset.

`var x = touchItem.screenX;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenX`
sourceraw docstring

set-screen-y!cljs

(set-screen-y! this val)

Property.

Returns the Y coordinate of the touch point relative to the screen, including any scroll offset.

var y = touchItem.screenY;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenY

Property.

Returns the Y coordinate of the touch point relative to the screen,
including any scroll offset.

`var y = touchItem.screenY;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenY`
sourceraw docstring

set-target!cljs

(set-target! this val)

Property.

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.

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

targetcljs

(target this)

Property.

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.

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