mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
ignore other than left press events in edit.js, this makes the rightclick camera more confortable while in edit.js/edit mode
This commit is contained in:
parent
d32e500464
commit
712048ce51
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue