Skip to content
Snippets Groups Projects
Commit a87c302b authored by ransome1's avatar ransome1
Browse files

Optimized cluster based loading, when zoom is not set to 100%

parent fa208e72
No related branches found
Tags v1.0.5-4
No related merge requests found
......@@ -53,9 +53,9 @@ let
clusterThreshold = 0,
stopBuilding = false,
visibleRows = 0;
console.log(clusterSize);
todoTableWrapper.addEventListener("scroll", function(event) {
if((event.target.scrollHeight - event.target.scrollTop <= event.target.clientHeight) && visibleRows<items.filtered.length) {
if(Math.floor(event.target.scrollHeight - event.target.scrollTop) <= event.target.clientHeight && visibleRows<items.filtered.length) {
stopBuilding = false;
startBuilding(null, true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment