From f4636333c45860b7c52e278c8309e90dd85488c7 Mon Sep 17 00:00:00 2001 From: liabru Date: Mon, 24 Mar 2014 19:49:44 +0000 Subject: [PATCH] disabled menus and selection on RenderPixi.js --- src/render/RenderPixi.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/render/RenderPixi.js b/src/render/RenderPixi.js index 272a78e..d09a4a4 100644 --- a/src/render/RenderPixi.js +++ b/src/render/RenderPixi.js @@ -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; };