Re: [fullscreen] Allow fullscreen to be triggered by an orientation change event (#34)

The animation frame callback timing is such that any changes made to style or DOM should apply to the frame that follows, which is be the first frame after the transition, whether it is fullscreen or orientation. This has at least been my assumption since the fullscreen spec began using animation frame tasks to solve the bad frame problem, so I sure hope I'm right :)

I agree that "rotate while going fullscreen" is a very interesting case, and it seems like one could want only one of these behaviors and that they could be treated separately, but used together. Very verbosely, the semantics might be `requestFullscreen({ delayFullscreenUntilRotationIs: 'landscape', ifGoingFullscreenDueToUseGestureRotateTo: 'landscape' })`. Seems OK to deal with "go fullscreen while rotating" first, only making sure that it could be sensible extended later.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/issues/34#issuecomment-197941579

Received on Thursday, 17 March 2016 15:48:15 UTC