提交 732fee16 编写于 作者: J Jaume Sanchez 提交者: Mr.doob

fix for retina screens (#9138)

上级 03c2cb54
......@@ -480,7 +480,7 @@
function setMouseCoords( x, y ) {
mouseCoords.set( ( x / renderer.domElement.width ) * 2 - 1, - ( y / renderer.domElement.height ) * 2 + 1 );
mouseCoords.set( ( x / renderer.domElement.clientWidth ) * 2 - 1, - ( y / renderer.domElement.clientHeight ) * 2 + 1 );
mouseMoved = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册