ソースを参照

Fix entities sliding around a little when using alt-scrolling

master
Fen Dweller 5年前
コミット
c6f97410b7
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      macrovision.js

+ 2
- 2
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};
}


読み込み中…
キャンセル
保存