Automatically scroll the container
Opened this issue ยท 12 comments
Hello,
This module works great, however a really nice feature would be the ability for the drag selection to scroll the container when going out of (visible) bound.
Unless such a feature already exists and I'm using the component incorrectly, which is entirely possible.
Thanks
Hey @rraziel, thanks! I am glad and happy that it works nice for you.
This is indeed a nice feature to have. Would you be up to take a look at this and send a PR? I am more than happy to assist you and help you with anything that comes up. I would really appreciate any help.
Any remarks on your end @timdeschryver?
Yea, why didn't we think of this ๐
I think it would be a great addition!
@rraziel So how do you think should this behave when there are multiple scroll containers? Cause you could have the page that is scrollable as well as the select-container which might be scrollable too. You think that the container is enough because I don't want to make this too complex and try to keep the lib as lightweight as possible.
Ideas @timdeschryver?
Personally, I would expect that the direct parent would scroll with the mouse movement.
If every container scrolls, it would look a bit funny imho ๐
Yep totally.
I'm not sure how reliable this would be - especially considering people may also use extra components for infinite scroll - but I expect finding the first scrollable ancestor might work?
@d3lm Any update on this ?
Thanks. :)
Not yet. Haven't had the time to work on this. As this library is open source I would appreciate any help and maybe @suhailsalim you wanna take a stab at this and send a PR if this is a pressing issue?
Or of course anyone else is also welcome to send a PR to introduce this feature.
any update on this feature?