Hi,
it's intentionally that the pixelratio is not included in the maxpixelzoom calculation.
Otherwise it wouldn't be possible to do any zooming when the pano-image itself is not that highres and using a hidpi-screen. That can happen very often especially on mobile devices.
Originally the pixelratio was even included, but there were several reports about that 'zooming-problem', so it was removed later.
Btw - the 'window.devicePixelRatio' is already available in krpano as 'device.pixelratio'.
You could e.g. do also something like this:
|
Quellcode
|
1
|
<view maxpixelzoom="calc:1.0 / device.pixelratio" />
|
About the maxpixelzoom on non-flat panos - a pano has a curved surface and not an even pixel-distribution that curviness is included in the calculation.
Best regards,
Klaus