kumavis / node-warrior

:tiger: 3D multiplayer voxel sandbox to teach programming

Home Page:https://kumavis.github.io/node-warrior

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Context click freezes mouse

knod opened this issue · comments

commented

If while playing the game you press esc to get your mouse back and then right-click on the screen to get the regular context menu, your mouse becomes frozen. This doesn't happen when you right click over the item menu area. Chrome + OSX 10.8

I think we should disable context click for the game. As developers we can use a keyboard shortcut to access the inspector.

http://stackoverflow.com/questions/381795/how-to-disable-right-click-context-menu-in-javascript

Chrome - Open Developer Tools
Mac: Cmd + Opt + I
Windows / Linux: F12, Ctrl + Shift + I

The html solution to disabling the context menu provided in that link sounds interesting too.