Let\'s say I am listening for touchstart
, touchmove
and touchend
on the body
element.
Let me know if I\'m wrong,
We have the following lists:
touches
: A list of information for every finger currently touching the screentargetTouches
: Like touches, but is filtered to only the information for finger touches that started out within the same nodechangedTouches
: A list of information for every finger involved in the eventTo better understand what might be in these lists, let’s go over some examples quickly. They vary according to the following rules:
changedTouches
because putting the finger down is what caused the eventtouches
will have two items, one for each finger. targetTouches
will have two items only if the finger was placed in the same node as the first finger. changedTouches
will have the information related to the second finger, because it’s what caused the eventchangedTouches
, one for each fingerchangedTouches
and will contain information related to as many fingers as have moved (at least one).touches
, targetTouches
and will appear in changedTouches
since it’s what caused the eventtouches
and targetTouches
empty, and changedTouches
will contain information for the last finger