code: function(origEvent, releasePoint, pointerType) {		
  		var e = document.createEvent( 'CustomEvent' ),
  			eDetail = {
  				origEvent:origEvent, 
  				target:origEvent.target, 
  				releasePoint: releasePoint, 
  				pointerType:pointerType || 'touch'
  			};
  
  		e.initCustomEvent( 'pswpTap', true, true, eDetail );
  		origEvent.target.dispatchEvent(e);
  	}
docs: tap.js:
  
  Displatches tap and double-tap events.