mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2024-12-23 07:26:11 +00:00
Bug Can move tile when this is the first added item
This commit is contained in:
parent
c68d2d4cfb
commit
67fea9aa9c
@ -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}));
|
||||
|
Loading…
Reference in New Issue
Block a user