Re: ACTION-119: dblclick analysis

On May 6, 2006, at 7:12 PM, L. David Baron wrote:

> On Saturday 2006-05-06 16:57 -0700, Maciej Stachowiak wrote:
>> All browsers seem to agree that dblclick.detail should match
>> click.detail for the corresponsing click event, although Opera does
>> not appear to be following Mac platform conventions for click count,
>> and Firefox does not appear to be following the proposed detail % 2
>> == 0 rule on the Mac.
>
> Gecko just uses the click count that it gets from the toolkit.  I  
> think
> this is a good thing, since it means Web apps will follow the
> environment's convention for multiple clicks.  When the user clicks in
> rapid succession, my tests [1] showed that this count progresses in  
> the
> following ways:
>
> Windows: 1 2 3 2 3 2 3 2 3 ...
> GTK2:    1 2 3 1 2 3 1 2 3 ...
> Mac:     1 2 3 4 5 6 7 8 9 ...
>
> When the click count is 2, we fire a dblclick event in addition to a
> click event.

That's why my tests show too (on the Mac). Safari fires "click" when  
the click count is any even number, and that is what has been  
proposed for the spec. All other browsers will fire dblclick every  
other click on the mac when repeat-clicking, although they vary in  
what click count they give.

Regards,
Maciej

Received on Sunday, 7 May 2006 05:13:19 UTC