Kaynağa Gözat

Disable the edge constraints

You don't have to hld alt to move things past the edge of the
screen now. There was no real reason to include that.
master
Fen Dweller 4 yıl önce
ebeveyn
işleme
7854a91de4
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. +4
    -2
      macrovision.js

+ 4
- 2
macrovision.js Dosyayı Görüntüle

@@ -479,11 +479,13 @@ function constrainRel(coords) {
y: Math.min(Math.max(coords.y, config.y), worldHeight + config.y) y: Math.min(Math.max(coords.y, config.y), worldHeight + config.y)
} }
} }

// not using constrainRel anymore
function snapPos(coords) { function snapPos(coords) {
return constrainRel({
return {
x: coords.x, x: coords.x,
y: (!config.lockYAxis || altHeld) ? coords.y : (Math.abs(coords.y) < config.height.toNumber("meters")/20 ? 0 : coords.y) y: (!config.lockYAxis || altHeld) ? coords.y : (Math.abs(coords.y) < config.height.toNumber("meters")/20 ? 0 : coords.y)
});
};
} }


function adjustAbs(coords, oldHeight, newHeight) { function adjustAbs(coords, oldHeight, newHeight) {


Yükleniyor…
İptal
Kaydet