Cleaning up specs

This commit is contained in:
Devine Lu Linvega
2019-01-09 16:19:50 +12:00
parent 23c53ef37e
commit d4812be0a8
3 changed files with 16 additions and 19 deletions

View File

@@ -89,7 +89,7 @@ function Cursor () {
}
this.pos_snap = function (pos) {
const grid = DOTGRID.tool.settings.size.width / DOTGRID.grid_x
const grid = DOTGRID.tool.settings.size.width / DOTGRID.grid.x
return {
x: clamp(step(pos.x, grid), grid, DOTGRID.tool.settings.size.width),
y: clamp(step(pos.y, grid), grid, DOTGRID.tool.settings.size.height + grid)