Feature Proposal: useDragScroll that allows to scroll horizontally/vertically within a designated container using a mouse #3875
Labels
direction: approved
The direction of feature/change is approved by the team. May require some small changes.
enhancement
New feature or request
vue: upstream
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
The text was updated successfully, but these errors were encountered: