Hello! In my pano tour I use hotspots to navigate. An action, similar to the 'transition'-action in the Kuchlerhaus-tour, is used:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
|
<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>
|
When this action is called from within the 'onclick'-attribute in the <hotspot>-tag, it works fine:
|
Quellcode
|
1
|
<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.
|
Quellcode
|
1
2
|
var command = 'navigateByHotspot(navigation_2, 2, 246.87, 0, 90)';
$('pano1').call(command);
|
Am I doing something wrong or could this be a bug?