- From: Anne van Kesteren <annevk@opera.com>
- Date: Tue, 28 Mar 2006 15:15:16 +0200
- To: "Web APIs WG (public)" <public-webapi@w3.org>
Here follows (hopefully) all we need to know about dblclick. Tests I used include: http://testsuite.org/dom/events/types/dblclick/001.htm http://testsuite.org/dom/events/types/dblclick/002.htm http://testsuite.org/dom/events/types/dblclick/003.htm http://testsuite.org/dom/events/types/dblclick/004.htm http://testsuite.org/dom/events/types/dblclick/005.htm ... and also: http://testsuite.org/dom/events/types/dblclick/001-ie.htm http://testsuite.org/dom/events/types/dblclick/003-ie.htm ... for Internet Explorer. To make a nice table: Type dblclick Namespace None Interface MouseEvent Cancelable Yes Bubbles Yes Target Element Context Info is the same as for the click event, including UIEvent.detail which returns the amount of subsequent clicks (not double clicks) taken in account platform conventions. For example, on Windows it will go to 2 after 3 and on the Mac it will go to 4. So when dblclick is dispatched, its UIEvent.detail says 2 (or a multiple of that, depending on the amount of clicks you made and depending on platform conventions). dblclick is dispatched when UIEvent.detail on the click event modulo two is zero. It is not dispatched as default action of the click event though, cancelling the click event does not cancel the dblclick event. As should be clear from this text dblclick is dispatched after the click event. `ACTION: Björn to merge it into DOM3EV`, no? :-) -- Anne van Kesteren <http://annevankesteren.nl/> <http://www.opera.com/>
Received on Tuesday, 28 March 2006 13:25:11 UTC