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) {