argonjs / argon-app

Source code for the Argon4 AR Web Browser
https://app.argonjs.io/
Apache License 2.0
45 stars 23 forks source link

Possible orientation change race conditions #57

Open kimberlysiva opened 7 years ago

kimberlysiva commented 7 years ago

Several pieces of the system need to respond to orientation changes:

These events are not instantaneous. For example, if we make changes to the System UI visibility on an orientation change event it will be a few hundred milliseconds before the views have the correct new size.

Currently, we handle this issue with a variety of timeouts, e.g. configuring Vuforia 500ms after an orientation event. There are possible race conditions here, we may want to clean up this logic.

Search the project for setTimeout to find the current fixes.