From 67fea9aa9cdb9db1a0bf50ede5e98a15ebec6d6d Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 21 Oct 2018 22:47:59 +0200 Subject: [PATCH] Bug Can move tile when this is the first added item --- src/js/dial.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/dial.js b/src/js/dial.js index 095a1d9..f01e002 100644 --- a/src/js/dial.js +++ b/src/js/dial.js @@ -346,6 +346,7 @@ dial.initGrid = function(){ ev.preventDefault(); return; } + if(dial.page == 0) dial.page = 1; var index = (dial.page - 1) * (app.settings.grid.rows * app.settings.grid.columns) + +(ev.target.parentElement.getAttribute('gridindex')); if(app.settings.grid.backNode && dial.path != '/') index -= dial.page; ev.dataTransfer.setData("text/plain", JSON.stringify({parentId: app.node.id, index: index}));