Hi guys
How can I adjust this example:
https://krpano.com/examples/118/e…ch-zooming.html
To work on an image popup?
I added the 2 actions into my xml, then I'm geussing I need to adjust my popup code, so I tried to adjust it like so:
Code
...
...
,type == 'image',
set(popup,
bgcolor=0xFFFFFF,
bgalpha=1,
);
addlayer("popup_image", img);
set(img,
url=get(content),
align=center,
width=-20, height=-20,
parent=get(popup.name),
onloaded='popup_imageloaded()'
);
onover="
set(iszoom, true);
set(startzoom, true);
copy(copy_mousefovchange, control.mousefovchange);
copy(copy_touchzoom, control.touchzoom);
set(control.mousefovchange, 0);
set(control.touchzoom, false);
";
onout="
set(iszoom, false);
copy(control.mousefovchange, copy_mousefovchange);
copy(control.touchzoom, copy_touchzoom);
";
ondown.touch="onover();";
onup.touch="onout();";
);
....
....
Display More
but its not working. No errors, the popup image just doesnt zoom....