Merge pull request #6479 from thoys/editjs-left-click

No more right-click-move editing in edit.js
This commit is contained in:
Ryan Huffman 2015-12-07 08:29:01 -08:00
commit 9d47ac000e
2 changed files with 10 additions and 0 deletions

View file

@ -392,6 +392,11 @@ var toolBar = (function() {
url,
file;
if (!event.isLeftButton) {
// if another mouse button than left is pressed ignore it
return false;
}
clickedOverlay = Overlays.getOverlayAtPoint({
x: event.x,
y: event.y

View file

@ -2340,6 +2340,11 @@ SelectionDisplay = (function () {
that.mousePressEvent = function(event) {
if (!event.isLeftButton) {
// if another mouse button than left is pressed ignore it
return false;
}
var somethingClicked = false;
var pickRay = Camera.computePickRay(event.x, event.y);