diff --git a/macrovision.js b/macrovision.js index 0ce87168..3f20b3dc 100644 --- a/macrovision.js +++ b/macrovision.js @@ -308,8 +308,8 @@ function snapPos(coords) { function adjustAbs(coords, oldHeight, newHeight) { const ratio = math.divide(newHeight, oldHeight); - const x = coords.x * ratio; - const y = coords.y * ratio; + const x = (coords.x - config.x) * ratio + config.x; + const y = (coords.y - config.y) * ratio + config.y; return { x: x, y: y}; }