Game Development Reference
In-Depth Information
In summary, the order in which touches are detected and assigned to the
TouchList object is unpredictable and should never be assumed. The proper way
to track individual touch objects is through the identifier property assigned to each
object. Once a touch event is released, the value of its former identifier property can
be reassigned to a consequent touch, so be sure to keep that in mind as well.
screenX
The screenX coordinate refers to the point in the browser viewport that was touched
relative to the origin of the system display. The origin of the browser's viewport is not
taken into account in this calculation at all. Point (0, 0) is the upper left corner of the
monitor, and however many pixels to the right of it is touched, that's where this attrib-
ute will refer.
Search WWH ::




Custom Search