[whatwg] HTML5 Video - Issue and Request for improvment

On Mon, Jan 31, 2011 at 8:34 AM, Simon Pieters <simonp at opera.com> wrote:

> On Mon, 31 Jan 2011 14:26:49 +0100, Glenn Maynard <glenn at zewt.org> wrote:
>
>  On Mon, Jan 31, 2011 at 7:17 AM, Simon Pieters <simonp at opera.com> wrote:
>>
>>  See http://lists.w3.org/Archives/Public/public-html/2009Jun/0395.html
>>>
>>> I suggested that the browser would not generate an event at all when
>>> using
>>> the native controls. Seemingly there was no reply to Hixie's request for
>>> opinion from other implementors.
>>>
>>>
>> There are other meaningful ways to respond to these events; for example,
>> to
>> pull its container to the top of the draw order if it's a floating window.
>> I should be able to capture mousedown on the container to do this,
>> regardless of content.
>>
>
> How about just suppressing activation events like click?
>

That makes more sense than suppressing the entire mousedown/mouseup events
(and keydown, touchstart, etc).

Also, it means you can completely emulate the event behavior of the default
browser controls with scripts: preventDefault on mousedown to prevent click
events.  That's probably not what you actually want to do, but it means the
default controls aren't doing anything special: their effect on events can
be understood entirely in terms of what scripted events can already do.

-- 
Glenn Maynard

Received on Monday, 31 January 2011 15:50:43 UTC