From cb5b5fcfc4367770454ec9a37e90c9071646a6c7 Mon Sep 17 00:00:00 2001 From: Zander Otavka Date: Tue, 4 Aug 2015 17:10:36 -0700 Subject: [PATCH] Increase right click move threshold. --- examples/controlPanel.js | 2 +- examples/example/ui/floatingUIExample.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/controlPanel.js b/examples/controlPanel.js index 53e9dbc05a..e579eddc63 100644 --- a/examples/controlPanel.js +++ b/examples/controlPanel.js @@ -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: { diff --git a/examples/example/ui/floatingUIExample.js b/examples/example/ui/floatingUIExample.js index 7270a5a13f..6a8278ac8a 100644 --- a/examples/example/ui/floatingUIExample.js +++ b/examples/example/ui/floatingUIExample.js @@ -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; } }