> click works fine
> when i doubleclick the item the doubleclick gets
> execute, BUT click gets executed twice BEFORE.

That's the way the events work. By the time it figures out you wanted a
double-click, it has already delivered a click.

You can avoid doing the click action by using setTimeout in the click()
handler for say 400ms, and only execute the click action if the timer
expires. Your double-click handler should cancel the timer and perform the
double-click action. You cannot make the click timeout shorter than the
double-click time, which in Windows is configurable by the user. So don't
try to make the click timeout short.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to