Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Donnerstag, 6. Januar 2011, 20:15

ondown event needed.

ondown event.

using the vtour droplet in order to have the thunbs close auotmatically they are coded to an onclick event. viewing the thumbs on my iphone they never close since there is never an onclick event that happens. we need an ondown event to replace the onclick for touch devices.

EDIT: I just tested the onmousedown event and it does work. I did not think it would because it stated mouse. Maybe it is called onmousedown but the mouse part is not needed it works for touch also.

HansNyb

Profi

Beiträge: 936

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

2

Freitag, 7. Januar 2011, 14:51

But why do you not use ondown?

There is nothing anywhere saying that it does not work.
I used it since I started using the Vtour

http://www.360-foto.dk/tadashi/ipad/

The close and open thumbs is ondown. Loading panos from thumbs is ondown.
The map popup is onclick. All works perfect on iPad.
You can clearly feel the difference when you click the thumbs and close the map.

Hans

3

Freitag, 7. Januar 2011, 16:14

yes i have used the ondown for hotspots and plugins. however i am talking about a global ondown event like seen here. i did not know about the onmousedown event it must be new. even though it says mouse it still works for touch so the event I was asking for is already available. in your tour you posted you have removed the closethumbs () that autocloses them with any click.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<events onxmlcomplete="IF(plugin[firstpano].firstpano == 1, groundspottags(););"
	        onpreviewcomplete=""
	        onloadcomplete="set(plugin[titletext].html, '[p]Downtown Duluth Aerial 360 [/p]'); set(plugin[scrolltextfield].html,data:b360);"
	        onloaderror="set(plugin[black].visible, true);"
	        onkeydown=""
	        onkeyup=""
                             onmousedown=""
	        onclick=""
	        onviewchange="maps_rot();"
	        onidle=""
	        onresize="" 
	        onenterfullscreen="set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);"
	        onexitfullscreen ="set(plugin[openfs].visible,true);  set(plugin[closefs].visible,false);" 
	        />


the vtour bat file uses the global onclick event to auto close the thumbs. it works no matter where on the screen you click. so for an touch device if you want the thumbs to close when the screen is touched you would chagne the onclicks in the red text below to onmousedown. otherwise they never close as there is never a click.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
	<action name="openthumbs">
		if(%1 != NEXT,
			set(i,0);
			set(events.onclick, set(events.onclick,null); delayedcall(0.1, closethumbs() ); );	
                                                                  );

		if(i LT scene.count,
			txtadd(thumbname,'thumb_',get(i));
			openthumb(get(thumbname));
			set(plugin[get(thumbname)].onclick, set(events.onclick,null); closethumbs(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); );
			inc(i);
			openthumbs(NEXT);
		  );
	</action>

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »VN2009« (7. Januar 2011, 19:16)


4

Freitag, 7. Januar 2011, 21:41

Hi,

there is already a global "onmousedown" event:
http://krpano.com/docu/xml/#events.onmousedown

on the iPhone/iPad it will be called on a iOS "touchstart" (=finger down) event,

best regards,
Klaus