Re-added copy path with ctrl+c

This commit is contained in:
Devine Lu Linvega
2018-10-02 07:38:14 +12:00
parent b7f188c7bf
commit 3879dd794c
11 changed files with 76 additions and 53 deletions

View File

@@ -102,7 +102,7 @@ function Cursor()
this.pos_snap = function(pos)
{
let 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)