Popup Hide behaviour.

Hi,
Webix popup has a click handler associated with document that calls the hide function as seen below. The hide function has a check based on time that checks if elapsed time is more than 100 msec and closes the popup, Can you tell the basis of this comparision?
I have a popup that is opened on a click event that seems to fail the check and get closed instantly . I could increase the time comparision if it were configurable but I would like to know why the below times have been chosen.

// Association of click handler
webix.protoUI({
	name:"popup",
	$init:function(){
		this._settings.head = false;
		this.$view.className += " webix_popup";
		webix.event(this._contentobj,"click", this._clever_block, this, true);
		webix.attachEvent("onClick", webix.bind(this._hide, this));
		this.attachEvent("onHide", this._hide_point);

// Actual method to invoke hide
_hide:function(){
		//do not hide modal windows
		if (this._settings.hidden || this._settings.modal) return;
		//do not hide popup, when we have modal layer above the popup
		if (webix._modality && this._settings.zIndex <= webix._modality) return;
		//do not hide popup if it was just opened ( the same click event )
		if (new Date() - (this._show_time || 0) > (webix.env.touch ? 400 : 100)) {
		    this.hide();
		}
	},

Popup closes automatically when any click on document occurs.
If you have a button, click on which must open popup, the order or action will be next:

  • click on button occurs
  • popup shown
  • click reaches document root
  • popup hidden ( as we have a click event outside of popup )

To prevent the auto-closing of just opened popup the 100ms delay was introduced. This time was chosen heuristically. In most real systems it doesn’t take more than 5-10ms to process both popup opening and global closing handler. Maybe you have some sync code or heavy js logic which fires on popup opening.