code: function(touch) {
        var dx = Math.abs(x - touch.x), dy = Math.abs(y - touch.y);
        return (dx <= DEDUP_DIST && dy <= DEDUP_DIST);
      }
docs: check if a click is within DEDUP_DIST px radius of the touchstart