You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

nosferatu

Trainee

  • "nosferatu" started this thread

Posts: 80

Location: Ukraine

  • Send private message

1

Wednesday, April 12th 2017, 11:20am

Bug onpreviewcomplete?

Why event "onpreviewcomplete" triggered then when there is no preview?

In the document says - "This event will be called when the loading of the preview image was completed"
But I do not have any preview image.

Source code

1
2
3
<krpano>
	<events onpreviewcomplete="showlog()" />
</krpano>

2

Wednesday, April 12th 2017, 11:58am

Hi,

so far I remember this is done due compatibility reasons - some examples or cases were depending on that event to trigger something or the keep the same flow for panos with and without preview image (e.g. in a tour with mixed panos)...

Best regards,
Klaus

nosferatu

Trainee

  • "nosferatu" started this thread

Posts: 80

Location: Ukraine

  • Send private message

3

Wednesday, April 12th 2017, 12:15pm

Thank you for the explanation!
I applied the workaround and signed up for the event through action.

Source code

1
<layer name="intro" ... onloaded="set(events.onpreviewcomplete, action); loadscene(0)" />