You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Thursday, February 3rd 2011, 5:42pm

iOS onviewchange event not fired while lookto ?

I'm developing for iPhone/iPad.

I've recently implemented a so called radar on my floorplan rotating according to view.hlookat after the onviewchange event has fired. This works fine.

However, after moving from one scene to another, the view-state is stored and used in a lookto function after the new panorama has loaded. But this does not seem to trigger the onviewchange event; causing the 'radar' to suddenly change rotation after the lookto animation has finished (instead of seamlessly moving along with the animation).

Is the firing of the event something that has been forgotten to implement? Or am I just talking crazy talk here?





Posts: 1,336

Location: Duluth MN

  • Send private message


Thursday, February 3rd 2011, 5:54pm

the iphone JS interface is not 100% capable of the same things the flash versions are. you very well could be trying somethign that cannot be done yet.


Thursday, February 3rd 2011, 6:04pm

Could be. But the onviewchange events do work in normal viewing, and are triggered while autorotating, I just wondered why they aren't in the lookto.

I have no idea about Flash though (haven't checked), maybe the event isn't triggered there either (though logically it should be).


Wednesday, February 9th 2011, 4:11pm


this behavior is the same for the krpano Flash and Javascript viewers and has historic reasons,

the lookto/moveto/zoomto/wait actions are blocking, that means all krpano code is blocked until these actions have finished,
I'm already working on additional actions (or additional settings for these actions) to allow using them non-blocking (like the tween()) action,

best regards,


Wednesday, August 17th 2011, 5:33pm

Has solution for this problem now?