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.

    Code
    <krpano>
    	<events onpreviewcomplete="showlog()" />
    </krpano>
  • 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

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

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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!