function hasTargetTouches(target, touches) {
  if (!touches || touches.length === 0) {
    return false;
  }

  for (var i = 0; i < touches.length; i++) {
    var node = touches[i].target;

    if (node != null) {
      if (target.contains(node)) {
        return true;
      }
    }
  }

  return false;
}
Determine whether any of the active touches are within the current responder.
This cannot rely on W3C `targetTouches`, as neither IE11 nor Safari implement it.