Selaa lähdekoodia

Put ruler marks in front; prevent dragging while in ruler mode

master
Fen Dweller 5 vuotta sitten
vanhempi
commit
0d268c48c5
2 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. +2
    -0
      macrovision.css
  2. +4
    -0
      macrovision.js

+ 2
- 0
macrovision.css Näytä tiedosto

@@ -296,6 +296,8 @@ select.menu-item {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: #00000000; background: #00000000;
z-index: 1001;
pointer-events: none;
} }


#display { #display {


+ 4
- 0
macrovision.js Näytä tiedosto

@@ -559,6 +559,7 @@ function drawRulers() {
ctx.moveTo(start.x, start.y); ctx.moveTo(start.x, start.y);
ctx.lineTo(end.x, end.y); ctx.lineTo(end.x, end.y);
ctx.lineWidth = 5; ctx.lineWidth = 5;
ctx.strokeStyle = "#f2f";
ctx.stroke(); ctx.stroke();
const center = { x: (start.x + end.x) / 2, y: (start.y + end.y) / 2 }; const center = { x: (start.x + end.x) / 2, y: (start.y + end.y) / 2 };
ctx.fillStyle = "#eeeeee"; ctx.fillStyle = "#eeeeee";
@@ -1455,6 +1456,9 @@ function testClick(event) {
// oh my god I can't believe I'm doing this // oh my god I can't believe I'm doing this


const target = event.target; const target = event.target;
if (rulerMode) {
return;
}


// Get click coordinates // Get click coordinates




Loading…
Peruuta
Tallenna