code: function offset (ev, target) {
    var cx = ev.clientX || 0
    var cy = ev.clientY || 0
    var rect = bounds(target)
    return [ cx - rect.left, cy - rect.top ]
  }
docs: get 2D client position of touch/mouse event