Procházet zdrojové kódy

Fix test canvas causing the layout to get messed up

tags/v0.0.1
Fen Dweller před 5 roky
rodič
revize
8c4c6a18e6
2 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. +5
    -0
      macrovision.css
  2. +3
    -1
      macrovision.js

+ 5
- 0
macrovision.css Zobrazit soubor

@@ -148,4 +148,9 @@ body {
.options-row .options-field-unit {
flex: 1;
font-size: 150%;
}

body #test-canvas {
position: fixed;
top: 100vh;
}

+ 3
- 1
macrovision.js Zobrazit soubor

@@ -279,8 +279,10 @@ function clearViewOptions(entity, view) {
// stack overflow
// https://stackoverflow.com/questions/38487569/click-through-png-image-only-if-clicked-coordinate-is-transparent

const testCtx = document.createElement("canvas").getContext("2d");
const testCanvas = document.createElement("canvas");
testCanvas.id = "test-canvas";

const testCtx = testCanvas.getContext("2d");
function testClick(event) {

const target = event.target;


Načítá se…
Zrušit
Uložit