You are not logged in.

1

Tuesday, January 28th 2014, 8:06pm

How to keep plugin enabled.

Hello.

I would like to enable drag cursor into the tour. The problem I am having is that every time I go to next view it comes back to original way of navigation. I would like to click on the hand and have it pressed after going to next panorama.

Part of the code I am using:


Source code

1
<!-- events to change the fullscreen buttons, set cursor on start -->	<events name="buttonevents" keep="true" 	        onxmlcomplete="if(istouchdevice, set_drag_cursor(), set_qtvr_cursor() );"	        onenterfullscreen="set(layer[openfs].visible,false); set(layer[closefs].visible,true);"	        onexitfullscreen ="set(layer[openfs].visible,true);  set(layer[closefs].visible,false);"	        />



I assume that I should change something around onxmlcomplete but I really have no clue what exactly :)


any help would be appreciated.


Since this is my first post, small introduction. My name is Marcin and I do virtual tours as a hobby for quite a time.


Best Regards
Marcin

2

Wednesday, January 29th 2014, 10:26am

Hi,

try removing the red marked code:

onxmlcomplete="if(istouchdevice, set_drag_cursor(), set_qtvr_cursor() );"


Best regards,
Klaus

3

Wednesday, January 29th 2014, 12:53pm

Hi Klaus,
thank you for the reply.

No that is not what I would like to achieve. If I press once button I want it to stay pressed after loading next pano. Your sollution made drag always enabled, but when I click to qtvr way of looking around I will use it untill I go to next panorama and then drag mode is on.

I want user to choose one way of looking around and have that choice selected when new panorama is displayed.

4

Wednesday, January 29th 2014, 2:09pm

Hi,

okay, this was a misunderstanding .

The reason that it will be always set the setting back to the start setting, is that the onxmlcomplete event will be called again and again when loading new scenes.

One solution would be to remove the onxmlcomplete event (set to null) after the first call - e.g.
<events name="buttonevents" keep="true"
onxmlcomplete="if(istouchdevice, set_drag_cursor(), set_qtvr_cursor() ); set(events[buttonevents].onxmlcomplete,null);"
...
/>


Best regards,
Klaus

5

Wednesday, January 29th 2014, 4:08pm

close, but still not this.

when I have this code

<events name="buttonevents" keep="true"
onxmlcomplete="if(istouchdevice, set_drag_cursor(), set_qtvr_cursor() );
set(events[buttonevents].onxmlcomplete,null);"
onenterfullscreen="set(layer[openfs].visible,false); set(layer[closefs].visible,true);"
onexitfullscreen ="set(layer[openfs].visible,true); set(layer[closefs].visible,false);"
/>
or when I delete line
onxmlcomplete="if(istouchdevice, set_drag_cursor(), set_qtvr_cursor() );


it will change the icon only, and keep it. Now When I go to next panorama I see hand cursor but i am rotating it as it was qtvr way of rotating.

6

Wednesday, January 29th 2014, 4:17pm

Hi,

then there must be somewhere in your code also an other setting or action that changes the control.mousetype setting...
This or the MERGE or KEEPCONTROLS flag is missing when loading new scenes/panos.

Given a concrete answer would be only possible when knowing the full tour source code of course.

Best regards,
Klaus

7

Thursday, January 30th 2014, 12:02pm

ok, lets just leave it for now.
I will use PTP2.0 in future and there it is possible.

thank you or help :)