mirror of
https://github.com/gre/gl-react.git
synced 2026-01-18 16:16:59 +00:00
Fix that opaque=true makes the canvas non transparent as expected
This commit is contained in:
parent
c7a937c71f
commit
b9fbf6fa6d
@ -80,7 +80,8 @@ class GLCanvas extends Component {
|
||||
width: width+"px",
|
||||
height: height+"px",
|
||||
[pointerEventsProperty]: eventsThrough ? "none" : "auto",
|
||||
position: "relative"
|
||||
position: "relative",
|
||||
background: opaque ? "#000" : "transparent"
|
||||
};
|
||||
return <canvas
|
||||
{...rest} // eslint-disable-line
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user