mirror of
https://github.com/liabru/matter-js.git
synced 2025-01-31 18:14:55 -05:00
reduce canvas hit testing in demo when using matter-tools
This commit is contained in:
parent
ce03208c5f
commit
da99acbf71
1 changed files with 8 additions and 0 deletions
|
@ -47,6 +47,14 @@
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
background: transparent !important;
|
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>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body><% for (var chunk in htmlWebpackPlugin.files.js) { %>
|
<body><% for (var chunk in htmlWebpackPlugin.files.js) { %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue