diff --git a/src/WebGL/webglInputEvents.js b/src/WebGL/webglInputEvents.js index a4654f1..4234bfc 100644 --- a/src/WebGL/webglInputEvents.js +++ b/src/WebGL/webglInputEvents.js @@ -104,7 +104,7 @@ function webglInputEvents(webglGraphics) { function preciseCheck(nodeUI, x, y) { if (nodeUI && nodeUI.size) { var pos = nodeUI.position, - half = nodeUI.size; + half = nodeUI.size/2; return pos.x - half < x && x < pos.x + half && pos.y - half < y && y < pos.y + half;