Feature Proposal: useDragScroll that allows to scroll horizontally/vertically within a designated container using a mouse
gigabites19 opened this issue · comments
Giga commented
Clear and concise description of the problem
I want to be able to scroll within a container using mouse because it is more convenient in certain cases, like when navigating a deeply nested representation of a directory tree structure.
Suggested solution
A composable function that accepts reference to the scrollable container and registers event-listeners for mouse events and scroll accordingly. With a possible configuration parameter for sensitivity.
Alternative
I've come across this and a couple other libraries but it would be nice to have it in vueuse: https://github.com/asvd/dragscroll
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.