[whatwg] DragEvent's inherited MouseEvent properties should be available to all drag events

On Wed, 12 Aug 2009, Sebastian Markb?ge wrote:
> > >
> > > The spec should explicitly specify which MouseEvent properties are 
> > > available during the various drag events to avoid assumptions.
> >
> > The spec requires them to all be set on all drag events, currently.
> 
> I thought that this was clear too but apparently it's not clear that 
> they should be set to something useful:
> 
> https://bugzilla.mozilla.org/show_bug.cgi?id=505521
> 
> > > The specification is only partly input device agnostic. It can't be 
> > > both totally input device agnostic and inherit MouseEvent. If it's 
> > > going to inherit MouseEvent it needs to be specified what that 
> > > means.
> >
> > I've added more text to clarify what it means in the case of the mouse 
> > not being used.
>
> Apparently it also needs to be clear that the properties SHOULD be set, 
> if a pointing device IS being used. See above conversion on the Mozilla 
> bug.
>
> I'd suggest you add something like "If there is a relevant pointing 
> device, the attributes should be set to relevant position values for all 
> events in the sequence." - So that the intention is clear and don't have 
> to rely on implicit interpretation.

The spec says, of all DND events: "the event [...] must have the context 
information set up [...] with [...] the mouse and key attributes set 
according to the state of the input devices as they would be for user 
interaction events". What more can I add?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Sunday, 16 August 2009 02:28:57 UTC