From 712048ce51de5233cd484214e52d10a8b11a0a8f Mon Sep 17 00:00:00 2001 From: Thijs Wenker Date: Tue, 24 Nov 2015 19:35:10 +0100 Subject: [PATCH] ignore other than left press events in edit.js, this makes the rightclick camera more confortable while in edit.js/edit mode --- examples/edit.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/edit.js b/examples/edit.js index 74551384c9..9b83079198 100644 --- a/examples/edit.js +++ b/examples/edit.js @@ -738,6 +738,10 @@ var mousePressStartPosition = { var mouseDown = false; function mousePressEvent(event) { + if (!event.isLeftButton) { + // If another mouse button than left is pressed ignore it + return false; + } mouseDown = true; mousePressStartPosition = { x: event.x,