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.


Saturday, October 15th 2016, 10:32pm

mobilescale problem.

Hi Klauss,
I have a question about mobilescale setting.
There are the difference between version 1.18.6 and 1.19-pr8.

With krpano 1.18 versione all elements are correctly scaled, but with 1.19-pr8 the elements aren't scaled by default.
In krpano documentation there is:
•By default all krpano content on mobile devices will be scaled by 0.5.
•To disable that scaling, set the mobilescale setting to 1.0.

Obviously, I can you use the property"0.5" for all elements in my xml project, but I would like to know why this difference.
Why this new version (1.19-pr8) don't work as previus version (1.18.6)...?

Example with 1.18.6 version:….18.6/tour.html

Example with 1.19-pr8 version:…9-pr8/tour.html

With 1.19-pr4 I had already reported a problem with the mobilescale setting.

Thanks and best regards, Marco
mastucc has attached the following images:
  • krpano_02.jpg
  • krpano_01.jpg

Alexey Tkachenko


Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message


Monday, October 17th 2016, 8:56am


In newer Krpano versions mobilescale is forced to 1.0 inside html:

Source code

embedpano({swf:"tour.swf", xml:"tour.xml", target:"pano", html5:"auto", mobilescale:1.0, passQueryParameters:true});

and there's also a line inside 'vtourskin.xml':

Source code

<!-- ensure stagescale 2x for mobile devices (regardless if mobilescale is 0.5 or 1.0) -->	<krpano stagescale="calc:stagescale * 2" if="stagescale LT 1.0" devices="mobile" />

It seems that this has something to do with skin design and VR. I had to update some of my tours a bit for newer Krpano versions.



Monday, October 17th 2016, 9:38pm

mobilescale problem - new test

Hi Alexey, thanks for your reply.
I also think the problem is in new skin design and VR.
I have read the code in 'vtourskin.xml', but I understand where is the problem... between 1.18.6 version and 1.19-pr8 version.

Now I created un new test, with hotspot elements; previous example used layer elments.
Please see the difference in the attached images and check the link directly with the mobile devide.
The hotspot elements are scaled if you use the 'distorted=true', but not if 'distorted' is set to false.
Test with 1.18.6


Test with 1.19-pr8


After these simple tests I noticed that the new version all elements version does not scale properly.
Does anyone have these same problems with scaling elements.

Thanks, Marco
mastucc has attached the following image:
  • krpano_03.jpg


Monday, October 17th 2016, 9:51pm


the skin layout in the vtourskin.xml of version 1.19 is designed for stagescale=1.0 - and when the stagescale is below 1.0, then the skin automatically scales it.

That's this line the xml:

Source code

<!-- ensure stagescale 2x for mobile devices (regardless if mobilescale is 0.5 or 1.0) -->
<krpano stagescale="calc:stagescale * 2" if="stagescale LT 1.0" devices="mobile" />

Best regards,


Wednesday, October 19th 2016, 10:23am

Hi Klauss, thanks for your reply.