Procházet zdrojové kódy

Make scrolling preserve apparent x-position as well (alt to disable)

tags/v0.1.0
Fen Dweller před 6 roky
rodič
revize
0c55380f38
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      macrovision.js

+ 2
- 1
macrovision.js Zobrazit soubor

@@ -90,7 +90,8 @@ function snapRel(coords) {
}

function adjustAbs(coords, oldHeight, newHeight) {
return { x: coords.x, y: 1 + (coords.y - 1) * math.divide(oldHeight, newHeight) };
const ratio = math.divide(oldHeight, newHeight);
return { x: 0.5 + (coords.x - 0.5) * math.divide(oldHeight, newHeight), y: 1 + (coords.y - 1) * math.divide(oldHeight, newHeight) };
}

function rel2abs(coords) {


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