change tolerance rate

This commit is contained in:
Val Erastov 2014-12-01 22:32:18 -08:00
parent 32b500ba74
commit 2db37c3b0e

View file

@ -134,8 +134,8 @@ TCAD.Viewer = function() {
renderer.domElement.removeEventListener('mousemove', onMove);
var dx = Math.abs(mouseState.startX - e.clientX);
var dy = Math.abs(mouseState.startY - e.clientY);
var TOL = 5;
if (dx <= TOL || dy <= TOL) {
var TOL = 1;
if (dx < TOL && dy < TOL) {
onClick(e);
}
} , false);