Javascript API - disabling interactions?

Q&A about the latest versions
Post Reply
ffurger
Posts: 105
Joined: Mon Mar 24, 2014 11:45 am

I need to temporarely stop all interactions with a panorama. So I used the following functions:

Code: Select all

pano.setLocked(true);
pano.setLockedMouse(true);
pano.setLockedKeyboard(true);
The funny thing is, if I try to pan the panorama simply by clicking anywhere on the pano and dragging left or right nothing happens - which is correct.
However, if I do the same thing by clicking on the controller, the pano rotate, i.e. the pano responds to the mouse normally. And all other commands available through the controller also work normally.

Am I missing something here?

-Franco
IronWagen
Posts: 47
Joined: Mon Nov 30, 2015 4:34 pm

What do you mean by 'the controller'? Buttons on the skin? If so, maybe you can hide the buttons when the pano is locked.
Post Reply