mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:49:12 +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);
|
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({
|
panel.setProperties({
|
||||||
visible: !panel.visible,
|
visible: !panel.visible,
|
||||||
offsetRotation: {
|
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;
|
mainPanel.visible = !mainPanel.visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue