onItemClick is raised before onItemDblClick is raised

Hi,

When user double clicks on a slice of a pie chart onItemClick event is raised.
see in the snippet: http://webix.com/snippet/a3d4d6e6
Double click on any slice, you’ll see message will appear from onItemClick handler

Unfortunately - this is expected behavior.

When user dbl-click browser receives the single click event and only after about 200ms delay, when second click occurs, dblClick event raised.

On moment of first click it is still unknown is we have a single click by user or it is a first click from dbl-click by user. The only way to separate both events - set timer in onitemclick

Check the updated snippet.

P.S. This situation is not specific for Webix but is common for click events handling in a browser.

http://webix.com/snippet/4d52aa9a