hi, thanks for the information.
but i think that there should be a click or dblClick event (depending on the doubleclick delay parameter) but *never* both. if i doubleclock to slow, the this results in two clicks, but if i click fast enough then this shold trigger a doubleClick event and no single click. does anyone know a system where a dblClick produces two additional click events? i don't think so. So as to simultate common behavior click and dblClick should not happen together. (my personal opinion :-)) Best regards, Stefan Kilp > > > 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/ -- Stefan Kilp SK-Software, Entwicklung & Beratung email: [EMAIL PROTECTED] fon : +49 6151 93344-0 fax : +49 6151 93344-20 Herta-Mansbacher-Str. 98 64289 Darmstadt, Germany. ----------------------------------------------------- _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
