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

The timing of the event is in https://w3c.github.io/screen-orientation/#handling-screen-orientation-changes but isn't what it would need to be right now.

For consistency with the fullscreen API, I think it would make the most sense if the orientation change event (ignoring fullscreen now) is dispatched in an animation frame task for the first frame after the viewport size change.

But it's an interesting idea to fire it earlier. It would have to be at the last frame before the rotation is observable, and there would have to be a guarantee that requesting fullscreen at that time would either fail or succeed before the next frame is drawn. This sounds a bit tricky, I'm guessing that right now Blink is simply informed that it has been rotated, and it block the rotation on a response from the main thread could be hard.

Does the declarative approach look terrible, or might it not be powerful enough?

---
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-197212454

Received on Wednesday, 16 March 2016 08:37:25 UTC