Popup close button freezes pano

  • I have been trying to get the close button for the iframe popups working.

    However the pano freezes completelly when I close the popup. No problem when clicking outside it to close.
    It even starts some sort of autopan which I do not have.

    Here is the test page. http://360-foto.dk/nationalhistorisk-museum/english.html

    And the xml for the popups. http://360-foto.dk/nationalhistor…ialmedia-en.xml

    BTW Thanks for the simple way to use percentage for the popups.
    I intend to use it for fullscreen popups so that you can use it also when you use real Fullscreen.
    Fullscreen for the Krpano zoom can of couse not be used when you are in Fullscreen.

  • I found what is wrong.
    I have used the one from the examples but it is different than the one Klaus has posted here,
    https://krpano.com/forum/wbb/inde…popup#post82017

    This action works;
    <action name="popup_close">
    set(global.events[popup].name, null);
    tween(global.plugin[pp_blur].range, 0.0);
    tween(global.layer[popup].alpha, 0.0, 0.25, default,
    removelayer('popup', true);
    scope(private:POPUP, delete(popup); );
    );
    </action>

    This from the Examples is freezing everything.

    <action name="popup_close">
    set(global.plugin[popup_bg].enabled, false);
    set(global.events[popup].name, null);
    tween(global.plugin[pp_blur].range, 0.0);
    tween(global.layer[popup_bg].bgalpha, 0.0, 0.25);
    tween(global.layer[popup].alpha, 0.0, 0.25, default,
    removelayer('popup_bg', true);
    scope(private:POPUP, delete(popup); );
    );
    </action>

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!