timing to execute an action

  • Hi, I have different behaviour is I use a virtual tour on a iphone or a android phone (iphone 6+ and LG G3) and what I understand is it's a timing problem:
    in webvr when user rotates his device portrait I copy the "home" button .visible value and then set it to false, and when going back to landscape, if the "home" button was visible initially then I set it to true again :


    this works perfect on iphone, but on android the home button never comes back to visible, looks like copy(vrmenuvisible, hotspot[vr_menu_home].visible); is done after vr_menu_setvisibility(false);
    If I add a delayedcall, like delayedcall(0.5,vr_menu_setvisibility(false)); then it works on both device...

    Does that mean iphone is faster to execute actions, and on android the copy action is longer than set visibility one ?
    Or maybe my code is wrong somewhere ???

    Thanx !

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!