Implementing source.load()
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user