Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Proposal: useDragScroll that allows to scroll horizontally/vertically within a designated container using a mouse #3875

Open
4 tasks done
gigabites19 opened this issue Mar 19, 2024 · 0 comments · May be fixed by #3912
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

Comments

@gigabites19
Copy link

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

@gigabites19 gigabites19 added the enhancement New feature or request label Mar 19, 2024
@dosubot dosubot bot added direction: approved The direction of feature/change is approved by the team. May require some small changes. vue: upstream labels Mar 19, 2024
@Alfred-Skyblue Alfred-Skyblue linked a pull request Apr 6, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant