0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-25 13:39:06 -05:00

disabled menus and selection on RenderPixi.js

This commit is contained in:
liabru 2014-03-24 19:49:44 +00:00
parent aa42f1653f
commit f4636333c4

View file

@ -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;
};