code: function makeClickEvent($el) {
    if ($el._events._click) return;
    $el._events._click = true;
  
    if (!navigator.userAgent.match(/iP(ad|hone|od)/g)) {
      $el._el.addEventListener('click', function(e) { $el.trigger('click', e); });
      return;
    }
  
    let start;
  
    $el._el.addEventListener('touchstart', function(e) {
      if (e.touches.length == 1) start = pointerPosition(e);
    });
  
    $el._el.addEventListener('touchend', function(e){
      if (!start) return;
      let end = pointerPosition(e);
      if (Math.abs(end.x - start.x) < 5 && Math.abs(end.y - start.y) < 5) {
        $el.trigger('click', e);
      }
      start = null;
    });
  
    $el._el.addEventListener('touchcancel', function() { start = null; });
  }
docs: ----------------------------------------------------------------------------- Click Events