Commit a87c302b authored by ransome1's avatar ransome1
Browse files

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

parent fa208e72
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment