From b9fbf6fa6d496a91aadcdf628222bcc93b343da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Mon, 21 Sep 2015 21:01:41 +0200 Subject: [PATCH] Fix that opaque=true makes the canvas non transparent as expected --- src/GLCanvas.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GLCanvas.js b/src/GLCanvas.js index cffcb18..1528c8b 100644 --- a/src/GLCanvas.js +++ b/src/GLCanvas.js @@ -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