You are not logged in.

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

1

Sunday, June 7th 2020, 6:11pm

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/nationalhistorisk-mus…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.

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

2

Sunday, June 7th 2020, 11:38pm

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/index.php?p…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>