Skip to content

Commit

Permalink
reduce canvas hit testing in demo when using matter-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Aug 12, 2023
1 parent ce03208 commit da99acb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions demo/src/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
</style>
</head>
<body><% for (var chunk in htmlWebpackPlugin.files.js) { %>
Expand Down

0 comments on commit da99acb

Please sign in to comment.