We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb70d12 commit 18b7ed3Copy full SHA for 18b7ed3
1 file changed
Examples/Geometry/Picking/index.js
@@ -201,8 +201,8 @@ function getScreenEventPositionFor(source) {
201
const scaleX = canvasWidth / bounds.width;
202
const scaleY = canvasHeight / bounds.height;
203
const position = {
204
- x: scaleX * (source.clientX - bounds.left),
205
- y: scaleY * (bounds.height - source.clientY + bounds.top),
+ x: Math.round(scaleX * (source.clientX - bounds.left)),
+ y: Math.round(scaleY * (bounds.height - source.clientY + bounds.top)),
206
z: 0,
207
};
208
return position;
0 commit comments