when embed krpano in a div which css set zoom=0.8,the Polygonal Hotspots onclick event not fired with correct screen position

  • Hi,

    this is not directly a bug in krpano, that's how CSS transforms are working the browsers...

    When applying a CSS transform to an element only the display of the element itself transformed, but the mouse (or touch) coordinates sent by the browser are unaffected by this. This affects all parts/cases where input coordinates are used, not just polygonal hotspots.

    Theoretically it would be possible to compensate the CSS transforms manually, but without explicit browser support this can be become complicated and inefficient for all kind of available CSS transforms.

    Here further information:
    https://stackoverflow.com/questions/6773…-css3-transform

    That means instead of using CSS transforms to change the size of the krpano viewer, it would be far better to change the actual CSS sizes itself. That would be additionally also better for the image-quality.

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!