From 938f1a0fde414c6caf141f0b05a3602dcf66a743 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 21 Oct 2017 16:08:38 +0200 Subject: [PATCH] Improvement: Don't send setNodeIndex if new index is the same than older index --- src/js/dial.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/dial.js b/src/js/dial.js index 9592e69..84886c7 100644 --- a/src/js/dial.js +++ b/src/js/dial.js @@ -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;