The TouchList interface represents a list of contact points on
touch surface. For example, if the user has three fingers on
touch surface (such as a screen or trackpad), the corresponding
object would have one web.Touch
object for each finger, for
total of three entries.
The TouchList interface represents a list of contact points on touch surface. For example, if the user has three fingers on touch surface (such as a screen or trackpad), the corresponding object would have one `web.Touch` object for each finger, for total of three entries.
(identified-touch this id)
Method.
The identifiedTouch() method returns the first web.Touch
item
the web.TouchList
that matches the specified identifier.
var touchItem = touchList.identifiedTouch(id);
See also: https://developer.mozilla.org/en-US/docs/Web/API/TouchList/identifiedTouch
Method. The identifiedTouch() method returns the first `web.Touch` item the `web.TouchList` that matches the specified identifier. `var touchItem = touchList.identifiedTouch(id);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/TouchList/identifiedTouch`
(item this index)
Method.
The item() method returns the web.Touch
object at the specified
in the web.TouchList
.
var touchPoint = touchList.item(index);
See also: https://developer.mozilla.org/en-US/docs/Web/API/TouchList/item
Method. The item() method returns the `web.Touch` object at the specified in the `web.TouchList`. `var touchPoint = touchList.item(index);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/TouchList/item`
(length this)
Property.
The length read-only property indicates the number of items (touch
in a given web.TouchList
.
var numTouches = touchList.length;
See also: https://developer.mozilla.org/en-US/docs/Web/API/TouchList/length
Property. The length read-only property indicates the number of items (touch in a given `web.TouchList`. `var numTouches = touchList.length;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/TouchList/length`
(set-length! this val)
Property.
The length read-only property indicates the number of items (touch
in a given web.TouchList
.
var numTouches = touchList.length;
See also: https://developer.mozilla.org/en-US/docs/Web/API/TouchList/length
Property. The length read-only property indicates the number of items (touch in a given `web.TouchList`. `var numTouches = touchList.length;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/TouchList/length`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close