Forum

How can I prevent right mouse click?

22 February 2016 12:52 #7622
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 #7623
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;
    };
Development Lead | Twitter
22 February 2016 14:22 #7624
Thank you!!
 
Please register or log in to leave a reply.