Sie sind nicht angemeldet.

1

Mittwoch, 12. April 2017, 11:20

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.

Quellcode

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

2

Mittwoch, 12. April 2017, 11:58

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

3

Mittwoch, 12. April 2017, 12:15

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

Quellcode

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