Hello! In my pano tour I use hotspots to navigate. An action, similar to the 'transition'-action in the Kuchlerhaus-tour, is used:
Code
<action name="navigateByHotspot">
...
<!-- move the hotspot (arrow) to the destination position -->
tween(hotspot[%1].alpha, 0.0, 0.25, default);
tween(hotspot[%1].ath, get(destination_ath), 0.25, default);
tween(hotspot[%1].atv, get(destination_atv), 0.25, default, WAIT);
...
<!-- look at the hotspot position -->
looktohotspot(%1);
...
</action>
Alles anzeigen
When this action is called from within the 'onclick'-attribute in the <hotspot>-tag, it works fine:
Code
<hotspot name="navigation_2" style="hotspot_navigation_north" ath="151.5" atv="4.8" scale="0.25" onclick="navigateByHotspot(navigation_2, 2, 246.87, 0, 90)"/>
However, when I call this action from an external javascript, it only works partially. The WAIT doesn't seem to have any effect: the 'looktohotspot'-action is executed at the same time as the preceding 'tween'-actions.
Am I doing something wrong or could this be a bug?