Node.js based forum software built for the modern web
dont update if index didnt change
Barış Soner Uşaklıfe8832ad5ce9
diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.jsindex 91c8ca1f8c..c1d6752cd2 100644--- a/public/src/modules/navigator.js+++ b/public/src/modules/navigator.js@@ -61,7 +61,11 @@ define('navigator', ['forum/pagination', 'components'], function (pagination, coe.stopPropagation();var x = Math.min($(window).width(), Math.max(0, e.touches[0].clientX));var percent = x / $(window).width();- index = Math.floor(count * percent);+ var newIndex = Math.floor(count * percent);+ if (newIndex === index) {+ return;+ }+ index = newIndex;navigator.updateTextAndProgressBar();}).on('touchend', function () {navigator.scrollToIndex(index - 1, true);