mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-26 13:49:01 -05:00
disabled menus and selection on RenderPixi.js
This commit is contained in:
parent
aa42f1653f
commit
f4636333c4
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ var RenderPixi = {};
|
|||
Common.log('No "render.element" passed, "render.canvas" was not inserted into document.', 'warn');
|
||||
}
|
||||
|
||||
// prevent menus on canvas
|
||||
render.canvas.oncontextmenu = function() { return false; };
|
||||
render.canvas.onselectstart = function() { return false; };
|
||||
|
||||
return render;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue