W3C home > Mailing lists > Public > public-webapi@w3.org > March 2006

ACTION-119: dblclick analysis

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>
Message-ID: <op.s64kfqa564w2qv@id-c0020.oslo.opera.com>

Here follows (hopefully) all we need to know about dblclick. Tests I used  


... and also:


... 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
Received on Tuesday, 28 March 2006 13:25:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:20 UTC