Hi,
I am in the middle of a bug that is intermittent. I am using IE11 and I double click a cell or event to show the lightbox, then if I cancel (or save) the lightbox the cover is not removed. So the screen becomes read only.
I’ve been tracing it down, I am seeing that show_cover is being called twice when the lightbox is opened. However _cover is being used as a single place holder, when the hide_cover() is called only one cover is removed. If I put in an if clause to prevent duplicate covers, things fix themselves, however I wondered why it was creating two events.
Delving into the code I see that there is the following snippet:
if (!scroll_mode && !drag_mode && now - dblclicktime < 250){
scheduler._click.dhx_cal_data(fake_event);
window.setTimeout(function(){
scheduler._on_dbl_click(fake_event);
}, 50);
if (e.preventDefault)
e.preventDefault();
e.cancelBubble = true;
scheduler._block_next_stop = true;
return false;
}
Now if I double click quickly it creates the duplicates, if I do it slowly it works as expected. It looks like this fake event is firing when it shouldn’t. Could someone explain further as to the point of creating the fake double click event in the case where the clicks are less than 250ms?