alalonde / angular-scrollable-table

A fixed header table directive for AngularJS
MIT License
68 stars 48 forks source link

Provide the option to disable the scroll listener #57

Open jdmarsh opened 7 years ago

jdmarsh commented 7 years ago

For a table with a large number of row (>1000) the table scrolling is very slow which I tracked down to the scroll event handler: $element.find(".scrollArea").scroll(function (event) { $element.find(headerElementToFakeScroll).css('margin-left', 0 - event.target.scrollLeft); }); It appears this handles horizontal scrolling which I didn't need so I was able to take it out safely. Is there a way to give the option to improve performance for large data sets if horizontal scrolling isn't needed?