mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:29:47 +02:00
Merge pull request #6479 from thoys/editjs-left-click
No more right-click-move editing in edit.js
This commit is contained in:
commit
9d47ac000e
2 changed files with 10 additions and 0 deletions
|
@ -392,6 +392,11 @@ var toolBar = (function() {
|
||||||
url,
|
url,
|
||||||
file;
|
file;
|
||||||
|
|
||||||
|
if (!event.isLeftButton) {
|
||||||
|
// if another mouse button than left is pressed ignore it
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
clickedOverlay = Overlays.getOverlayAtPoint({
|
clickedOverlay = Overlays.getOverlayAtPoint({
|
||||||
x: event.x,
|
x: event.x,
|
||||||
y: event.y
|
y: event.y
|
||||||
|
|
|
@ -2340,6 +2340,11 @@ SelectionDisplay = (function () {
|
||||||
|
|
||||||
that.mousePressEvent = function(event) {
|
that.mousePressEvent = function(event) {
|
||||||
|
|
||||||
|
if (!event.isLeftButton) {
|
||||||
|
// if another mouse button than left is pressed ignore it
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var somethingClicked = false;
|
var somethingClicked = false;
|
||||||
var pickRay = Camera.computePickRay(event.x, event.y);
|
var pickRay = Camera.computePickRay(event.x, event.y);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue