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();
}
},