mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-14 20:33:30 +01:00
change tolerance rate
This commit is contained in:
parent
32b500ba74
commit
2db37c3b0e
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue