hi guys, Currently the pointerEvents is already set to none for CSS2dObject in order to allowing me interact with the 3d scene. Is there any way to fix it? Because I need the CSS2dObject as a button.
Just to clarify,
CSS2DObject does not set the
pointer-events CSS property to
none by default. Registering event listeners works as intended: Edit fiddle - JSFiddle - Code Playground
If you set the property to
none on app level, then you also can’t use the respective pointer event listeners.
A way to handle this is to switch the pointerevents style of the container by using mouseover/mouseout events on the Html in the CSS2dObject.