You are not logged in.

1

Friday, January 22nd 2021, 11:38am

Blur problems after popups

When using this great way to display popup windows (https://krpano.com/releases/1.20.9/viewe…tml5=only+webgl) it has the disadvantage that the popup opens, but the whole panorama continues to work, even the lower menu (which is not seen in the example). What happens is that if the user clicks to change the panorama, the new one drags the blur and it cannot be eliminated if The page will not reload.
I have tried to put something similar to z-index, but I have not achieved satisfactory result. Any option?
Regards

2

Wednesday, January 27th 2021, 9:40am

Hi,

do you use the example code from the latest version?

Because the example was especially improved for that because there were similar requests.

Now there is a background layer that blocks controlling other elements.
It's defined here:
https://krpano.com/viewsource.html?relea…/popup_blur.xml
this way:

Source code

1
2
3
4
5
6
7
8
9
10
11
addlayer('popup_bg', popup_bg);
set(popup_bg,
    type=container,
    align=lefttop, width=100%, height=100%,
    zorder=99,
    handcursor=false,
    bgcapture=true,
    capture=false,
    //bgcolor=0x123456, onloaded='tween(bgalpha,0.3,1.0);', // optional: colorize the background
    ondown='popup_close()'
);

(depending on your other layers maybe increase the zorder value)

And there is code to automatically remove the blur when changing the pano:

Source code

1
set(global.events[popup].onremovepano, popup_close() );


That means when using the code from the latest release, that what you describe shouldn't happen.

Best regards,
Klaus

3

Friday, January 29th 2021, 10:11am

Yeeeees. Solved. It works perfectly.
I used the example from the beginning and I did not find out about this modification, which is decisive.
Thanks Klaus.

Similar threads