diff --git a/main.js b/main.js index 9eaa154..afa6dc9 100644 --- a/main.js +++ b/main.js @@ -56,7 +56,7 @@ app.on('ready', () => is_shown = true; }) // Open the DevTools. - win.webContents.openDevTools() + // win.webContents.openDevTools() }) app.on('window-all-closed', () => diff --git a/sources/scripts/dotgrid.js b/sources/scripts/dotgrid.js index 9e21855..fc6e3f2 100644 --- a/sources/scripts/dotgrid.js +++ b/sources/scripts/dotgrid.js @@ -135,7 +135,7 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y,thickness = 3,lineca this.cursor.style.left = Math.floor(-(pos.x-this.grid_width)); this.cursor.style.top = Math.floor(pos.y+this.grid_height); - this.cursor_coord.className = -pos.x > 150 ? "fl left" : "fl" + this.cursor_coord.className = -pos.x > this.width/2 ? "fl left" : "fl" this.cursor_coord.textContent = parseInt(-pos.x/this.grid_width)+","+parseInt(pos.y/this.grid_height); }