mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2024-12-23 07:26:11 +00:00
Improvement: Don't send setNodeIndex if new index is the same than older index
This commit is contained in:
parent
4019c0cf77
commit
938f1a0fde
@ -301,7 +301,7 @@ dial.initGrid = function(){
|
||||
EndIndex = (dial.page - 1) * (app.settings.grid.rows * app.settings.grid.columns) + +(ev.target.getAttribute('gridindex'));
|
||||
}
|
||||
if(app.settings.grid.backNode && dial.path != '/') EndIndex -= dial.page;
|
||||
app.Messages.setNodeIndex(StartIndex, EndIndex);
|
||||
if(StartIndex != EndIndex) app.Messages.setNodeIndex(StartIndex, EndIndex);
|
||||
}
|
||||
link.draggable = true;
|
||||
link.ondragstart = dragstart_handler;
|
||||
|
Loading…
Reference in New Issue
Block a user