Forum

How can I prevent right mouse click?

22 February 2016 12:52
Hi.

When I panning my camera, sometimes I press right mouse button, and it shows me the pop up window.

Is there any way to prevent this?
22 February 2016 12:58
Hi,
When I panning my camera, sometimes I press right mouse button, and it shows me the pop up window.

Is there any way to prevent this?
We use this code to disable the browser right-click menu in our web player:
window.oncontextmenu = function(e) {
        e.preventDefault();
        e.stopPropagation();
        return false;
    };
The Founder | Twitter | Facebook | Linkedin
22 February 2016 14:22
Thank you!!
 
Please register or log in to leave a reply.