Increase right click move threshold.

This commit is contained in:
Zander Otavka 2015-08-04 17:10:36 -07:00
parent a21fa94f14
commit cb5b5fcfc4
2 changed files with 2 additions and 2 deletions

View file

@ -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: {

View file

@ -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;
}
}