Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comtry:
onclick="switch(autorotate.enabled);"
hope it helps.
Tuur![]()
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Quoted
When only the variable itself without value parameters will be given, then the variable will be switched between true and false.
: https://pame.virtualtuur.comWhen only the variable itself without value parameters will be given, then the variable will be switched between true and false.
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Quoted
And does not explain my actual question. Why is the true/false option only changing it for the viewed pan while the enable is stopping and starting it globally.
: https://pame.virtualtuur.com"autorotate.enabled" is the full name of the setting (variable) that controls if the auto-rotation is enabled or not,Does not say anything to me.
And does not explain my actual question. Why is the true/false option only changing it for the viewed pan while the enable is stopping and starting it globally.
|
|
Source code |
1 |
onclick="switch(autorotate,false,true);invalidatescreen();" |
partially yes, it would work, but the false and true options and invalidatescreen call were not needed,So you mean that if you should use it that way it should say
onclick="switch(autorotate.enabled ,false,true);invalidatescreen();"
|
|
Source code |
1 |
switch(autorotate.enabled); |
there is no globally or locally in krpano, you can only change the current state of the auto rotation,I just want to know how to do it both globally and locally on 1 scene only as the onclick="switch(autorotate.enabled);" only works for all panos.