aboutsummaryrefslogtreecommitdiff
path: root/src/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.lua')
-rw-r--r--src/utils.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.lua b/src/utils.lua
index ec5d16e..55a9d35 100644
--- a/src/utils.lua
+++ b/src/utils.lua
@@ -54,7 +54,7 @@ function clamp(a, min, max)
end
function snap(x, step)
- return math.floor(x / step) * step
+ return round(x / step) * step
end
function frac(x)