fix bug when unfocusing from 360 image and clicking anywhere but a 360 sphere, which then breaks 360.
This commit is contained in:
parent
7af850ff0e
commit
3a5aaac8c2
@ -75,7 +75,7 @@ export class Images360 extends EventDispatcher{
|
|||||||
viewer.inputHandler.addInputListener(this);
|
viewer.inputHandler.addInputListener(this);
|
||||||
|
|
||||||
this.addEventListener("mousedown", () => {
|
this.addEventListener("mousedown", () => {
|
||||||
if(currentlyHovered){
|
if(currentlyHovered && currentlyHovered.image360){
|
||||||
this.focus(currentlyHovered.image360);
|
this.focus(currentlyHovered.image360);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user