|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
...
...
,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();";
);
....
....
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Morne« (27. Mai 2020, 19:59)
Still cant get this to work
Howdy Morne,
This thread may give you the answer or at least enough info to work out your solution.
https://krpano.com/forum/wbb/index.php?p…&threadID=15195
The problem is I'm not zooming on an image layer, I'm zooming on a popup. I've tried various things to modify the code but I can't make it work on an image popup.