Fix that opaque=true makes the canvas non transparent as expected

This commit is contained in:
Gaëtan Renaudeau 2015-09-21 21:01:41 +02:00
parent c7a937c71f
commit b9fbf6fa6d

View File

@ -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