perfect-scrollbar
perfect-scrollbar copied to clipboard
Feature Request: minRailLength
Hi,
First of all, thanks for this library, it really is close to being perfect! This is related to mdbootstrap/perfect-scrollbar#65 and mdbootstrap/Tailwind-Elements#848.
I would like to request a configurable option minRailLength.
Please consider we are using perfect-scrollbar in potentially really large lists. Currently, the scrollbar 'rail' is really small in these lists. I would like to be able to provide minRailLength: 100 to make the rail minimum 100px high.
This currently doesn't seem to be possible. I have provided an example jsfiddle. I hope this illustrates the problem.
Real world example (seeded with dummy data):

On quick glance it seems like maybe we can add this logic here: https://github.com/mdbootstrap/perfect-scrollbar/blob/master/src/update-geometry.js#L56
@mattonit I saw you updated the logic there a few weeks ago. Can you confirm this is where the code would need an update and would you accept a PR for it ?
Thanks!