code: function ( type ) {
              if ( /pointerdown/i.test(type) ) {
                  type = 'touchstart';
              } else if ( /pointermove/i.test(type) ) {
                  type = 'touchmove';
              } else if ( /pointerup/i.test(type) ) {
                  type = 'touchend';
              } else if ( /pointercancel/i.test(type) ) {
                  type = 'touchcancel';
              }
      
              return type;
          }
docs: origin event type to cross event type