W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2011

[whatwg] Fullscreenchange event

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 29 Oct 2011 08:38:48 +0200
Message-ID: <op.v33oqyz364w2qv@annevk-macbookpro.local>
On Sat, 29 Oct 2011 04:18:37 +0200, Chris Pearce <cpearce at mozilla.com>  
wrote:
> Should we still dispatch the fullscreenchange event to the element which  
> requested fullscreen if the element was removed from its document before  
> the event was dispatched? What if the element was added to another  
> document before the event could be dispatched? Should we dispatch to  
> requester's original document in these cases? Or just not dispatch the  
> event? We'll be exiting full-screen in this case anyway, since the  
> element was removed from the doc. Or should we do something else?

There's a similar case with the user exiting fullscreen before the events  
have dispatched. Accounting for it seems like needless complexity. Having  
the event dispatch twice combined with simply checking  
document.fullscreenElement seems sufficient.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Friday, 28 October 2011 23:38:48 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:37 UTC