code: function sendClick(e) {
        var touch = e.changedTouches[0];
        var evt = doc.createEvent('MouseEvents');
        var eventType = 'click';
        if (Device.android && targetElement.nodeName.toLowerCase() === 'select') {
          eventType = 'mousedown';
        }
        evt.initMouseEvent(eventType, true, true, win, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
        evt.forwardedTouchEvent = true;
  
        if (app.device.ios && win.navigator.standalone) {
          // Fix the issue happens in iOS home screen apps where the wrong element is selected during a momentum scroll.
          // Upon tapping, we give the scrolling time to stop, then we grab the element based where the user tapped.
          setTimeout(function () {
            targetElement = doc.elementFromPoint(e.changedTouches[0].clientX, e.changedTouches[0].clientY);
            if (targetElement) {
              targetElement.dispatchEvent(evt);
            }
          }, 10);
        } else {
          targetElement.dispatchEvent(evt);
        }
      }
docs: Send Click