Sie sind nicht angemeldet.

1

Dienstag, 26. November 2013, 16:37

freezeview() behaviour changed in new krpano version? Any solution?

Hi all,

I'm using the freezeview() function within my own plugin while dragging an hotspot object.

After update 1.0.8.15 -> 1.16.9 this does not work any more correctly (in the old way).

freezeview(true) is ok, the pano image is frozen and drag goes the normal way, only difference to old version: the pano movement cursors are there instead of the former simple arrow.
When executing freezeview(false) the view has changed, in the old version it did not.

Does anybody have a solution for this that is better than programmatically change the cursors and programatically save the old view and restore it before releasing the freeze?

Thanks in advance for answers.

Thomas
www.mountainpanoramas.com

2

Dienstag, 26. November 2013, 16:55

Hi,

freezeview() should still work...
I have just tested it now and it was working as intended.

Are you sure that you are viewing the Flash version?
Note - freezeview() isn't supported in HTML5.

Best regards,
Klaus

3

Dienstag, 26. November 2013, 17:09

For sure flash, my plugin is written in actionscript

4

Dienstag, 26. November 2013, 17:14

For info: I have hooked an onviewchange event handler, not in the plugin, but in the XML, and this gets fired too during the freeze.

5

Dienstag, 26. November 2013, 17:30

Hi,

yes, the view.* values can be still changed during freezeview (and so the onviewchange event will be dispatched too), but there will be no pano rendering during freezeview.

If you want to disable the user controls, use the usercontrol setting - e.g.

Quellcode

1
set(control.usercontrol,off);


Best regards,
Klaus

6

Dienstag, 26. November 2013, 19:25

Klaus, thanks very much for the help!!! *smile* *smile* *smile*
This was definitely the right hint.

I set the control.usercontrol to off during the freeze phase, now I have the same behaviour as before the version update.

Grüße aus München ins Nachbarland
Thomas

Ähnliche Themen