You are not logged in.

1

Wednesday, March 18th 2015, 1:36pm

Help with closing Flyouts when clicking elsewhere

Hello everyone,

I'm new here and was wondering what's best way to make the flyouts/hotspots/images close once they're opened whenever you click elsewhere or pan around from this example, rather than clicking again on the images to close them down:
http://krpano.com/examples/118/examples/…e-hotspots.html

Thanks in advance!

This post has been edited 1 times, last edit by "pampiuk" (Mar 18th 2015, 6:32pm)


Alexey Tkachenko

Professional

Posts: 770

Location: Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Wednesday, March 18th 2015, 8:42pm

Hi)

Try using an "event" and trigger the "flyback_others();" from it. For example, add in the code this:

Source code

1
2
3
	<events name="flyback_events" keep="true" 
	        onmousedown="flyback_others();"	
	/>


And you will see that spots fly back when you click anywhere inside the pano.
Regards,

Alexey

3

Thursday, March 19th 2015, 11:33am

Thanks! Works like a charm! *g*