Please Note: I am currently playing around with converting this to a more reusable module - so in flux - but JS code in dist folder should work.
A custom scrollbar for variable height flex items - background info can be found at http://caughtexceptions.blogspot.co.nz/2016/06/custom-scrollbar-for-variable-height.html and a working demo at https://plnkr.co/edit/p1ps6Nx0vyldiXVv4xlf?p=preview
This is a proof of concept Angular directive to apply a custom scrollbar to variable height flex items using native OS scrolling.
Todo:
- Tidy up and move bulk of functionality to ES6 module and make the directive a wrapper only
- Add tests
- Remove dependency on ng-lodash (only used for debouncing resize and mutation watchers)
As mentioned above - this is just a proof of concept at this stage, and for the specific use case of adding a custom scrollbar to variable height flex items. There is no intention at this stage to extend it to be a fully functional custom scroller for all use cases.