Browser zoom and mouse position

  • Hello everybody,

    I need the exact relative mouse position in the flash window of krpano. I calculate this position by dividing mouse.x/width-of-the-viewport and mouse.y/height-of-the-viewport. Under normal circumstances the size of the viewport doesn't change and the relative position of the cursor takes values between 0 and 1. However, when using browser magnification, the size of the viewport changes and my calculations lead to wrong results.

    Is there a way to read out the degree of browser magnification or to stop the krpanoviewport changing size when zooming in with the browser?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!