You are not logged in.

  • "sachagriffin" started this thread

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

1

Thursday, October 27th 2011, 8:27pm

onorientationchange fires onresize up to four times iphone.

I have a lot that gets updated onresize.. "responsive design"
For the iphone this gets fired up to four times each time you go from landscape to portrait and Nissan Versa.

What happens is that it chews through a lot of code every orientation change. Shouldn't it fire just once? Is there something I could have done to alter onresize's behavior like its waiting for something to know its finished?
I tried installing a throttle so it only calls my function once via a working / finished variable, but my first attempts didn't work.

Note.
I'm using a delayedcall( function in onresize so that JS can get the appropriate stagewidth
set(events.onresize,'delayedcall(0.1,func())');
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

2

Friday, November 4th 2011, 4:09pm

Hi,

okay, that will be changed in one of the next version,
then the onresize event will be only called when the pano stage has really changed,

best regards,
Klaus