From 36238bb5dfb30873c623da0dbeaac596a8b476a8 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Wed, 4 Feb 2015 10:43:55 -0800 Subject: [PATCH] Update editEntities to use left click for select --- examples/editEntities.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/editEntities.js b/examples/editEntities.js index 9c4c9a5776..c0c74b8f33 100644 --- a/examples/editEntities.js +++ b/examples/editEntities.js @@ -535,6 +535,9 @@ var idleMouseTimerId = null; var IDLE_MOUSE_TIMEOUT = 200; function mouseMoveEvent(event) { + if (!isActive) { + return; + } if (idleMouseTimerId) { Script.clearTimeout(idleMouseTimerId); } @@ -602,7 +605,7 @@ function mouseReleaseEvent(event) { } function mouseClickEvent(event) { - if (!event.isRightButton) { + if (!event.isLeftButton || !isActive) { return; }