You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the spec says "If requestPresent() is called outside of a user gesture the promise MUST be rejected."
However, presumably that only makes sense if we aren't already presenting? In other words, if we're calling requestPresent while already presenting in order to update the layers, shouldn't that be allowed even if it wasn't user-initiated?
The text was updated successfully, but these errors were encountered:
ssylvan
changed the title
Clarify reqeustPresent outside of user-initiated action
Clarify requestPresent outside of user-initiated action
Dec 16, 2016
The short answer is yes, the user gesture requirement should only be for the initial requestor went call. We'll review the spec text and make sure this is clear.
Currently the spec says "If requestPresent() is called outside of a user gesture the promise MUST be rejected."
However, presumably that only makes sense if we aren't already presenting? In other words, if we're calling requestPresent while already presenting in order to update the layers, shouldn't that be allowed even if it wasn't user-initiated?
The text was updated successfully, but these errors were encountered: