mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2026-10-24 07:58:14 +00:00
Bug Can move tile when this is the first added item
This commit is contained in:
1 parent
c68d2d4cfb
commit
67fea9aa9c
1 file changed
+1
@@ -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}));
|
||||
|
||||
Reference in new issue
Block a user