mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
Increase right click move threshold.
This commit is contained in:
parent
a21fa94f14
commit
cb5b5fcfc4
2 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ function onMouseUp(event) {
|
|||
overlay.onClick(event);
|
||||
}
|
||||
}
|
||||
if (event.isRightButton && Vec3.distance(mouseDown.pos, { x: event.x, y: event.y }) < 5) {
|
||||
if (event.isRightButton && Vec3.distance(mouseDown.pos, { x: event.x, y: event.y }) < 10) {
|
||||
panel.setProperties({
|
||||
visible: !panel.visible,
|
||||
offsetRotation: {
|
||||
|
|
|
@ -184,7 +184,7 @@ function onMouseUp(event) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (event.isRightButton && Vec3.distance(mouseDown.pos, { x: event.x, y: event.y }) < 5) {
|
||||
if (event.isRightButton && Vec3.distance(mouseDown.pos, { x: event.x, y: event.y }) < 10) {
|
||||
mainPanel.visible = !mainPanel.visible;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue