From da99acbf718baa91949bd51345f5f38c3dc92de7 Mon Sep 17 00:00:00 2001 From: liabru Date: Sat, 12 Aug 2023 23:18:15 +0100 Subject: [PATCH] reduce canvas hit testing in demo when using matter-tools --- demo/src/index.ejs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/demo/src/index.ejs b/demo/src/index.ejs index 45d0cd3..cb568ca 100644 --- a/demo/src/index.ejs +++ b/demo/src/index.ejs @@ -47,6 +47,14 @@ opacity: 0.5; background: transparent !important; } + + @media only screen and (min-width: 1300px) { + /* reduce hit testing when using matter-tools */ + .matter-demo canvas { + position: relative; + z-index: 20; + } + } <% for (var chunk in htmlWebpackPlugin.files.js) { %>