We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use v2.1.1
When I right click on <canvas> of game, I get a message from Firefox console:
<canvas>
ReferenceError: event is not defined
The line 253 ~ 263 of CCApplication.js is:
cc.setContextMenuEnable = function (enabled) { cc._isContextMenuEnable = enabled; if (!cc._isContextMenuEnable) { cc.canvas.oncontextmenu = function () { event.returnValue = false; }; } else { cc.canvas.oncontextmenu = function () { }; } };
The problem is at line 257:
event.returnValue = false;
I think that the code is to prevent contextmenu on right click. Is it better to replace line 257 with following:
return false;
The text was updated successfully, but these errors were encountered:
Thank you, Chen. I will fix this issue soon.
Sorry, something went wrong.
No branches or pull requests
I use v2.1.1
When I right click on
<canvas>
of game, I get a message from Firefox console:The line 253 ~ 263 of CCApplication.js is:
The problem is at line 257:
I think that the code is to prevent contextmenu on right click.
Is it better to replace line 257 with following:
The text was updated successfully, but these errors were encountered: