Sie sind nicht angemeldet.

360boy

Fortgeschrittener

  • »360boy« ist der Autor dieses Themas

Beiträge: 249

Wohnort: Mexico City

Beruf: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer

  • Nachricht senden

1

Mittwoch, 7. August 2013, 21:01

BUG Doubled onresize event and actions overflow

This one's for Klaus,

I'm coding some simple actions into the "onresize" event and I'm getting "actions overflow" (Ver. 1.16.5). After some testing I've concluded that something's strange about that event, at least in HTML5, it seems that it's content is repeated twice at resizing, which in my case results in the "actions overflow" warning".

I created this example for you: http://imagen360.com/krpano/onresize/

Simulator here: http://imagen360.com/krpano/onresize/iph…-simulator.html


Quellcode

1
2
3
4
5
6
7
<krpano version="1.16.5" onstart="set(i,0);">
		    		    
	<preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16" />

	<events	onresize="trace(get(stagewidth)); inc(i); trace(get(i));"	/>				

</krpano>


Check logkey so you can see it displays stagewidth twice on each portrait-panoramic flip. There's also a counter there to help out.

Please check out this bug cause in my case I can't advance because of the overflow, which I think must be cause all actions inside this event are getting done twice.

Best Regards

Luis

2

Donnerstag, 8. August 2013, 14:29

Hi,

thanks for this note!
It will be fixed in one of the next releases.

Best regards,
Klaus

360boy

Fortgeschrittener

  • »360boy« ist der Autor dieses Themas

Beiträge: 249

Wohnort: Mexico City

Beruf: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer

  • Nachricht senden

3

Donnerstag, 8. August 2013, 20:21

Great Klaus, thank you!

Best regards.

Luis