Cleaned specs

This commit is contained in:
Devine Lu Linvega
2019-01-10 08:35:10 +12:00
parent 82dc0919c8
commit 60a8c62927
3 changed files with 29 additions and 34 deletions

View File

@@ -89,10 +89,9 @@ function Cursor () {
}
this.pos_snap = function (pos) {
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)
x: clamp(step(pos.x, 15), 15, DOTGRID.tool.settings.size.width),
y: clamp(step(pos.y, 15), 15, DOTGRID.tool.settings.size.height + 15)
}
}