Hi,
yes, this is intended.
This helps a lot with dynamic layouts.
Maybe we can have an onresizeonly or so that is only happening when you resize?
Sure - add this code to extend krpano with a 'onresizeonly' event:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
|
<events name="onresize_changes_only" keep="true"
onresize="
if(last_stagewidth != stagewidth OR last_stageheight != stageheight,
events.dispatch('onresizeonly');
);
copy(last_stagewidth, stagewidth);
copy(last_stageheight, stageheight);
"
/>
|
Usage example:
|
Quellcode
|
1
|
<events onresizeonly="trace('size=',stagewidth,'x',stageheight);" />
|
Best regards,
Klaus