Implementing source.load()

This commit is contained in:
Devine Lu Linvega
2019-04-22 10:25:31 +09:00
parent 2b8ddbf764
commit f72547b634
7 changed files with 25 additions and 19 deletions

View File

@@ -90,8 +90,8 @@ function Cursor () {
this.snapPos = function (pos) {
return {
x: clamp(step(pos.x, 15), 0, dotgrid.tool.settings.size.width),
y: clamp(step(pos.y, 15), 0, dotgrid.tool.settings.size.height)
x: clamp(step(pos.x, 15), 15, dotgrid.tool.settings.size.width - 15),
y: clamp(step(pos.y, 15), 15, dotgrid.tool.settings.size.height - 15)
}
}