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
An annoyance with the orientation lock API, is that the promise resolves before the event is sent.
This makes it hard to default handlers that you don't want to call in certain cases, because if you remove the handler then there is no good place to add it back in, because if you do after the promise gets resolves, it might get called as the event is still pending :-(
This also means that it makes sense for the unlock to return a promise.
An annoyance with the orientation lock API, is that the promise resolves before the event is sent.
This makes it hard to default handlers that you don't want to call in certain cases, because if you remove the handler then there is no good place to add it back in, because if you do after the promise gets resolves, it might get called as the event is still pending :-(
This also means that it makes sense for the unlock to return a promise.
We ran into this in intel/generic-sensor-demos#72
The text was updated successfully, but these errors were encountered: