Skip to content
Permalink
Browse files

history scrolling issues

  • Loading branch information...
Manuel-777 committed Feb 26, 2019
1 parent 98ae718 commit 6e4bc8918e50615a488391292b7d5e7afbfa34e2
Showing with 9 additions and 1 deletion.
  1. +9 −1 window_main/history.js
@@ -148,7 +148,15 @@ function open_history_tab(loadMore) {
}

//console.log("Load more: ", loadHistory, loadMore, loadHistory+loadMore);
// loadMore = The ammount of items we want to load
// loadHistory = The starting point to load
// loadEnd = The ending point
// actuallyLoaded = The number of items that were actually loaded
// some items are skipped due to being invalid to what we want to load or having broken data
//let dd = createDivision(["list_fill"]);
//historyColumn.appendChild(dd);
var actuallyLoaded = loadHistory;

for (var loadEnd = loadHistory + loadMore; actuallyLoaded < loadEnd && loadHistory <= matchesHistory.matches.length && actuallyLoaded < filteredSampleSize; loadHistory++) {
var match_id = matchesHistory.matches[loadHistory];
var match = matchesHistory[match_id];
@@ -337,7 +345,7 @@ function open_history_tab(loadMore) {
}
);

loadHistory = loadEnd;
//loadHistory = loadEnd;
}

function formatPercent(percent, precision) {

0 comments on commit 6e4bc89

Please sign in to comment.
You can’t perform that action at this time.