提交 84c15c2d 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #10788 from Mugen87/dev

DragControls: Fixed #10786
......@@ -52,8 +52,8 @@ THREE.DragControls = function ( _objects, _camera, _domElement ) {
event.preventDefault();
_mouse.x = ( event.clientX / _domElement.width ) * 2 - 1;
_mouse.y = - ( event.clientY / _domElement.height ) * 2 + 1;
_mouse.x = ( event.clientX / _domElement.clientWidth ) * 2 - 1;
_mouse.y = - ( event.clientY / _domElement.clientHeight ) * 2 + 1;
_raycaster.setFromCamera( _mouse, _camera );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册