Removed scroll timeout

pull/4625/head
Roman Roelofsen 8 years ago
parent 8f01aadc9b
commit 8209392269
  1. 8
      frontend/app/components/wp-table/wp-virtual-scroll.directive.ts

@ -275,12 +275,12 @@ function wpVirtualScrollTable(workPackageTableVirtualScrollService: WorkPackageT
rowsInViewport);
};
let scrollTimeout: any;
// let scrollTimeout: any;
$element.on("scroll", () => {
scrollTimeout && clearTimeout(scrollTimeout);
scrollTimeout = setTimeout(() => {
// scrollTimeout && clearTimeout(scrollTimeout);
// scrollTimeout = setTimeout(() => {
updateScrollInfo();
}, 100);
// }, 0);
});
updateScrollInfo();

Loading…
Cancel
Save