Hi,
I have a project with a javascript wrapper for krpano api.
With my JS wrapper, i can call an action written in the config.xml. It is a sequence of lookto for explaining 360 interaction to user before starting the tour.
|
Source code
|
1
2
3
4
5
6
7
8
9
|
<action name="help-drag">
oninterrupt('reset-help');
wait(1);
lookto(40,0,120,linear(20));
lookto(17.5,0,120,linear(20));
lookto(17.5,-17.5,120,linear(20));
lookto(17.5,20,120,linear(20));
lookto(0,0,120,linear(30));
</action>
|
The user can stop this sequence by closing the overlay, but i want to stop the action sequence too.
It seems that calling the other action named 'reset-help' which has this code :
|
Source code
|
1
2
3
4
5
|
<action name="reset-help">
showlog(true);
stopall();
breakall();
</action>
|
doesn't arrive directly, but after the first lookto sequence.
It seems that the oninterrupt does work just for user interaction and not code blocking stuff.
Any advice for my feature ?