From 7854a91de40cb49dff565d740ea7b75a9fc7de59 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sun, 24 Oct 2021 18:34:10 -0400 Subject: [PATCH] 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. --- macrovision.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/macrovision.js b/macrovision.js index a67e3e84..87ff916d 100644 --- a/macrovision.js +++ b/macrovision.js @@ -479,11 +479,13 @@ function constrainRel(coords) { y: Math.min(Math.max(coords.y, config.y), worldHeight + config.y) } } + +// not using constrainRel anymore function snapPos(coords) { - return constrainRel({ + return { x: coords.x, y: (!config.lockYAxis || altHeld) ? coords.y : (Math.abs(coords.y) < config.height.toNumber("meters")/20 ? 0 : coords.y) - }); + }; } function adjustAbs(coords, oldHeight, newHeight) {