未验证 提交 8a5fb70a 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18144 from yomotsu/fix/css3-root-elms-may-cover-child

CSS3Renderer: CSS pointer-events handling
......@@ -10,6 +10,7 @@ THREE.CSS3DObject = function ( element ) {
this.element = element;
this.element.style.position = 'absolute';
this.element.style.pointerEvents = 'auto';
this.addEventListener( 'removed', function () {
......@@ -55,6 +56,7 @@ THREE.CSS3DRenderer = function () {
var domElement = document.createElement( 'div' );
domElement.style.overflow = 'hidden';
domElement.style.pointerEvents = 'none';
this.domElement = domElement;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册