Hello
When i want to get mouse position on panorama, i use following code:
var krpano = document.getElementById("krpanoSWFObject");
if (krpano && krpano.get) {
var mouse_at_x = krpano.get("mouse.x");
var mouse_at_y = krpano.get("mouse.y");
if (mouse_at_x && mouse_at_y)// wait also for the jsmouse plugin
{
var hvs = krpano.get("screentosphere(" + mouse_at_x + "," + mouse_at_y + ")");
console.log(hvs);
}
}
But it gives me error that hvs is null?
how can i get exact mouse location when i drop my hotspot in panorama.
Thank You