I\'m just wondering why click event happening when I dbclick an element?
I have this code:(JSBIN)
HTML
&l
To answer the revised question (How to mutually exclusively handle click and dblclick) you have to delay the click event until dblclick is no longer possible. This gives a slight lag (e.g., 500ms) to click handling but otherwise there is no way for the DOM to predict whether a second click will be arriving.
An example script is in this answer: https://stackoverflow.com/a/11057483/43217